svn commit: r535589 - head/devel/py-jaraco.util

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun May 17 18:27:30 UTC 2020


Author: sunpoet
Date: Sun May 17 18:27:24 2020
New Revision: 535589
URL: https://svnweb.freebsd.org/changeset/ports/535589

Log:
  Convert to test framework

Modified:
  head/devel/py-jaraco.util/Makefile

Modified: head/devel/py-jaraco.util/Makefile
==============================================================================
--- head/devel/py-jaraco.util/Makefile	Sun May 17 18:27:19 2020	(r535588)
+++ head/devel/py-jaraco.util/Makefile	Sun May 17 18:27:24 2020	(r535589)
@@ -17,6 +17,10 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}contextlib2>=0:dev
 		${PYTHON_PKGNAMEPREFIX}jaraco>=0:devel/py-jaraco@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jaraco.context>=0:devel/py-jaraco.context@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=3.5:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-black-multipy>=0:devel/py-pytest-black-multipy@${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
@@ -32,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-all mailing list