pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/python
Module Name: pkgsrc
Committed By: wiz
Date: Sun Oct 29 22:50:36 UTC 2023
Modified Files:
pkgsrc/lang/python: wheel.mk
Log Message:
python: wheel.mk: add default test target using py-test
If you want to define your own, define a do-test or set USE_PYTEST to no
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/python/wheel.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/python/wheel.mk
diff -u pkgsrc/lang/python/wheel.mk:1.10 pkgsrc/lang/python/wheel.mk:1.11
--- pkgsrc/lang/python/wheel.mk:1.10 Sat Oct 28 19:57:10 2023
+++ pkgsrc/lang/python/wheel.mk Sun Oct 29 22:50:35 2023
@@ -1,4 +1,4 @@
-# $NetBSD: wheel.mk,v 1.10 2023/10/28 19:57:10 wiz Exp $
+# $NetBSD: wheel.mk,v 1.11 2023/10/29 22:50:35 wiz Exp $
#
# Build and install Python wheels
#
@@ -7,6 +7,9 @@
# WHEELFILE: path to the wheelfile to be installed
# only needs to be set if do-build is redefined
#
+# USE_PYTEST: If set to yes, depend on py-test and use it for testing.
+# Default: yes
+#
PY_PATCHPLIST?= yes
@@ -33,4 +36,11 @@ do-install:
--prefix ${PREFIX:Q} ${WHEELFILE}
.endif
+USE_PYTEST?= yes
+.if !target(do-test) && ${USE_PYTEST:Myes}
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+do-test:
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+.endif
+
.include "../../lang/python/extension.mk"
Home |
Main Index |
Thread Index |
Old Index