svn commit: r567142 - head/devel/py-funcsigs
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Mar 3 18:09:15 UTC 2021
Author: sunpoet
Date: Wed Mar 3 18:09:10 2021
New Revision: 567142
URL: https://svnweb.freebsd.org/changeset/ports/567142
Log:
Convert to test framework
It removes the warning message:
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
Modified:
head/devel/py-funcsigs/Makefile
Modified: head/devel/py-funcsigs/Makefile
==============================================================================
--- head/devel/py-funcsigs/Makefile Wed Mar 3 18:09:05 2021 (r567141)
+++ head/devel/py-funcsigs/Makefile Wed Mar 3 18:09:10 2021 (r567142)
@@ -13,12 +13,14 @@ COMMENT= Python function signatures from PEP362
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2@${PY_FLAVOR}
+
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
do-test:
- cd ${WRKSRC}/ && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+ cd ${WRKSRC}/ && ${PYTHON_CMD} -m unittest2 -v
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list