svn commit: r535588 - head/devel/py-jaraco.timing

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


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

Log:
  Convert to test framework

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

Modified: head/devel/py-jaraco.timing/Makefile
==============================================================================
--- head/devel/py-jaraco.timing/Makefile	Sun May 17 18:27:14 2020	(r535587)
+++ head/devel/py-jaraco.timing/Makefile	Sun May 17 18:27:19 2020	(r535588)
@@ -15,6 +15,8 @@ LICENSE=	MIT
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.15.0:devel/py-setuptools_scm@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jaraco>=0:devel/py-jaraco@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=3.5:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0:devel/py-pytest-flake8@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist concurrent distutils
@@ -23,6 +25,14 @@ NO_ARCH=	yes
 
 POST_PLIST=	trim-jaraco-namespace
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3600
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tempora1>=1.5:devel/py-tempora1@${PY_FLAVOR}
+.else
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tempora>=1.5:devel/py-tempora@${PY_FLAVOR}
+.endif
+
 post-install:
 	@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco/__init__.py*
 	-@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco/__pycache__/__init__.*
@@ -31,12 +41,7 @@ post-install:
 trim-jaraco-namespace:
 	@${REINPLACE_CMD} '/jaraco\/__init__\./d; /jaraco\/__pycache__\/__init__\./d' ${TMPPLIST}
 
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_REL} < 3600
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tempora1>=1.5:devel/py-tempora1@${PY_FLAVOR}
-.else
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tempora>=1.5:devel/py-tempora@${PY_FLAVOR}
-.endif
+do-test:
+	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
 
 .include <bsd.port.post.mk>


More information about the svn-ports-all mailing list