git: e4dafddcdb49 - main - devel/py-expecttest: New port:Implementation of expect tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 12 Feb 2024 23:07:39 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e4dafddcdb495751bc4184f10f54b6120b80703c

commit e4dafddcdb495751bc4184f10f54b6120b80703c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-02-12 14:27:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-02-12 23:07:34 +0000

    devel/py-expecttest: New port:Implementation of expect tests
---
 devel/Makefile                |  1 +
 devel/py-expecttest/Makefile  | 22 ++++++++++++++++++++++
 devel/py-expecttest/distinfo  |  3 +++
 devel/py-expecttest/pkg-descr |  6 ++++++
 4 files changed, 32 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index ef3a30fd6239..314c71d0d873 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4651,6 +4651,7 @@
     SUBDIR += py-exceptiongroup
     SUBDIR += py-executing
     SUBDIR += py-expandvars
+    SUBDIR += py-expecttest
     SUBDIR += py-expiringdict
     SUBDIR += py-extras
     SUBDIR += py-extremes
diff --git a/devel/py-expecttest/Makefile b/devel/py-expecttest/Makefile
new file mode 100644
index 000000000000..344468acf801
--- /dev/null
+++ b/devel/py-expecttest/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	expecttest
+DISTVERSION=	0.2.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Implementation of expect tests
+WWW=		https://github.com/ezyang/expecttest
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-expecttest/distinfo b/devel/py-expecttest/distinfo
new file mode 100644
index 000000000000..a26628cb058f
--- /dev/null
+++ b/devel/py-expecttest/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707768829
+SHA256 (expecttest-0.2.1.tar.gz) = e52b1cf8a6f84506e6962a0bbdd248ea442124d826e849f263ec1c322ebb73f5
+SIZE (expecttest-0.2.1.tar.gz) = 6873
diff --git a/devel/py-expecttest/pkg-descr b/devel/py-expecttest/pkg-descr
new file mode 100644
index 000000000000..8843252d9cf2
--- /dev/null
+++ b/devel/py-expecttest/pkg-descr
@@ -0,0 +1,6 @@
+The expecttest library implements expect tests (also known as "golden" tests).
+Expect tests are a method of writing tests where instead of hard-coding the
+expected output of a test, you run the test to get the output, and the test
+framework automatically populates the expected output. If the output of the
+test changes, you can rerun the test with the environment variable
+EXPECTTEST_ACCEPT=1 to automatically update the expected output.