git: 014c66f8f3c6 - main - devel/py-foolscap: Convert to USE_PYTHON=unittest
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jun 2022 23:19:44 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=014c66f8f3c661fadc9714729e1af7b6b4c74823 commit 014c66f8f3c661fadc9714729e1af7b6b4c74823 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-06-09 23:10:41 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-06-09 23:16:03 +0000 devel/py-foolscap: Convert to USE_PYTHON=unittest - Add TEST_DEPENDS --- devel/py-foolscap/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/devel/py-foolscap/Makefile b/devel/py-foolscap/Makefile index 1b512b8cf153..fff46d072ae8 100644 --- a/devel/py-foolscap/Makefile +++ b/devel/py-foolscap/Makefile @@ -15,13 +15,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=0:security/py-openssl@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}twisted>=16.0.0:devel/py-twisted@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}txi2p-tahoe>=0.3.2:devel/py-txi2p-tahoe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}txtorcon>=19.0.0:security/py-txtorcon@${PY_FLAVOR} USES= python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent distutils unittest NO_ARCH= yes - -do-test: - cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test +TEST_ARGS= discover -s src +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} .include <bsd.port.mk>