35ba2340c6
* Adjust "do-test" target accordingly as the issue with pinned test dependencies was fixed by upstream. [1] Changelog: * Dropped Python 2.7, 3.3, 3.4 support * Removed six package * Removed pinned dependencies of tests [1] * Dropped setup.py tests support in favor of tox https://github.com/pyupio/dparse/blob/0.5.0/HISTORY.rst
30 lines
755 B
Makefile
30 lines
755 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dparse
|
|
DISTVERSION= 0.5.0
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Parser for Python dependency files
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pipenv>0:devel/py-pipenv@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= python:3.5+
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
|
|
|
|
.include <bsd.port.mk>
|