devel/py-atomiclong: switch to USES=pytest, silence stripping

This commit is contained in:
Dmitry Marakasov 2022-04-20 15:23:02 +03:00
parent 9481f43720
commit 850d203ab9

View file

@ -12,18 +12,14 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= python:3.6+
USES= python:3.6+ pytest
USE_PYTHON= autoplist distutils
post-patch:
@${REINPLACE_CMD} '/setup_requires/d' ${WRKSRC}/${PYSETUP}
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_cffi__*.so
do-test:
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_cffi__*.so
.include <bsd.port.mk>