svn commit: r535585 - head/devel/py-jaraco.functools
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun May 17 18:27:14 UTC 2020
Author: sunpoet
Date: Sun May 17 18:27:04 2020
New Revision: 535585
URL: https://svnweb.freebsd.org/changeset/ports/535585
Log:
Convert to test framework
Modified:
head/devel/py-jaraco.functools/Makefile
Modified: head/devel/py-jaraco.functools/Makefile
==============================================================================
--- head/devel/py-jaraco.functools/Makefile Sun May 17 18:26:59 2020 (r535584)
+++ head/devel/py-jaraco.functools/Makefile Sun May 17 18:27:04 2020 (r535585)
@@ -16,6 +16,11 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4.1:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jaraco>=0:devel/py-jaraco@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}more-itertools>=2.7:devel/py-more-itertools@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jaraco.classes>=0:devel/py-jaraco.classes@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=3.5:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-black>=0.3.7:devel/py-pytest-black@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0:devel/py-pytest-flake8@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
@@ -31,5 +36,8 @@ post-install:
trim-jaraco-namespace:
@${REINPLACE_CMD} '/jaraco\/__init__\./d; /jaraco\/__pycache__\/__init__\./d' ${TMPPLIST}
+
+do-test:
+ cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list