Skip to content

Commit

Permalink
archivers/py-zopfli: Convert to USE_PYTHON=pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jun 9, 2022
1 parent 82df72c commit 8a847db
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions archivers/py-zopfli/Makefile
Expand Up @@ -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>

0 comments on commit 8a847db

Please sign in to comment.