Skip to content

Commit

Permalink
textproc/py-enrich: fix tests
Browse files Browse the repository at this point in the history
- Switch to USES=pytest
- Fix depends by dropping bogus version limitation

Reported by:	reprise
Approved by:	portmgr blanket
  • Loading branch information
AMDmi3 committed Apr 26, 2022
1 parent 0aa1bf4 commit bfd17f6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions textproc/py-enrich/Makefile
Expand Up @@ -16,16 +16,12 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.5.0:devel/py-setuptools_
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rich>=9.5.1:textproc/py-rich@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=3.0.5:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.7.1:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.3.1:devel/py-pytest-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.29.0:devel/py-pytest-xdist@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=5.4.0:devel/py-pytest@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.29.0:devel/py-pytest-xdist@${PY_FLAVOR}

USES= python:3.6+
USES= python:3.6+ pytest
USE_PYTHON= autoplist distutils

NO_ARCH= yes

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

.include <bsd.port.mk>

0 comments on commit bfd17f6

Please sign in to comment.