Skip to content

Commit

Permalink
devel/py-outcome: switch to USES=pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 19, 2022
1 parent b3d488e commit bd7be8d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions devel/py-outcome/Makefile
Expand Up @@ -13,16 +13,11 @@ LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.MIT
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.APACHE2

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}async_generator>=0:devel/py-async_generator@${PY_FLAVOR}

USES= python:3.6+
USES= python:3.6+ pytest
USE_PYTHON= autoplist distutils
NO_ARCH= yes
TEST_ENV= PYTHONPATH="${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}"

do-test:
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs

.include <bsd.port.mk>

0 comments on commit bd7be8d

Please sign in to comment.