git: 8a847db1399f - main - archivers/py-zopfli: Convert to USE_PYTHON=pytest
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jun 2022 11:03:19 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a847db1399fee380c7e2d61902f7fd61bbcda91 commit 8a847db1399fee380c7e2d61902f7fd61bbcda91 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-06-09 10:58:06 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-06-09 10:58:06 +0000 archivers/py-zopfli: Convert to USE_PYTHON=pytest --- archivers/py-zopfli/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/archivers/py-zopfli/Makefile b/archivers/py-zopfli/Makefile index be1fd65fe33b..94696eedafa0 100644 --- a/archivers/py-zopfli/Makefile +++ b/archivers/py-zopfli/Makefile @@ -13,15 +13,13 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} USES= python:3.7+ zip -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent distutils pytest + +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + -do-test: - cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v - .include <bsd.port.mk>