git: dd9e315d3463 - main - devel/py-cffi: Convert to USE_PYTHON=pytest
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Jun 2022 17:01:34 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd9e315d346383474844a25dd3ce3765990355d4 commit dd9e315d346383474844a25dd3ce3765990355d4 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-06-03 16:57:17 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-06-03 16:57:17 +0000 devel/py-cffi: Convert to USE_PYTHON=pytest --- devel/py-cffi/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/devel/py-cffi/Makefile b/devel/py-cffi/Makefile index 6b0acd355f14..c0eea1c15955 100644 --- a/devel/py-cffi/Makefile +++ b/devel/py-cffi/Makefile @@ -15,10 +15,11 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libffi.so:devel/libffi RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=0:devel/py-pycparser@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} USES= compiler:c11 localbase python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent distutils pytest + +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include <bsd.port.pre.mk> @@ -29,7 +30,4 @@ CFLAGS+= -Wno-shift-negative-value 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.post.mk>