aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-10-06 15:59:42 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-10-06 16:11:49 +0000
commit9028a1e8f5681ecae31930ad4deb99ad4b267a8c (patch)
tree6fcdbb2785e27b7f7293e392a26db18deb599a73
parentc65bd7c81abaade78686070a64ddebeb6e9dc0f5 (diff)
math/py-permutation: Update 0.3.0 -> 0.3.1
Reported by: portscout
-rw-r--r--math/py-permutation/Makefile13
-rw-r--r--math/py-permutation/distinfo6
2 files changed, 15 insertions, 4 deletions
diff --git a/math/py-permutation/Makefile b/math/py-permutation/Makefile
index 806988b50e65..26407ec4668f 100644
--- a/math/py-permutation/Makefile
+++ b/math/py-permutation/Makefile
@@ -1,5 +1,5 @@
PORTNAME= permutation
-DISTVERSION= 0.3.0
+DISTVERSION= 0.3.1
CATEGORIES= math python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,6 +10,9 @@ COMMENT= Permutations of finitely many positive integers
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
USES= python:3.6+
USE_PYTHON= distutils autoplist
@@ -21,4 +24,12 @@ pre-configure: # permutation is officially built with "build" (https://github.co
${ECHO} "setup()" \
) > ${WRKSRC}/setup.py
+do-test: install # instructions from tox.ini
+ @cd ${WRKSRC} && \
+ coverage erase && \
+ coverage run -m pytest --doctest-modules --pyargs permutation && \
+ coverage run -m pytest test README.rst docs/index.rst && \
+ coverage combine && \
+ coverage report
+
.include <bsd.port.mk>
diff --git a/math/py-permutation/distinfo b/math/py-permutation/distinfo
index dcd041a24fd8..b2504a4808b1 100644
--- a/math/py-permutation/distinfo
+++ b/math/py-permutation/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1608707865
-SHA256 (permutation-0.3.0.tar.gz) = 61cff29def92d72cd828d6866a6a01d03e4a4191d798a73e9ce08c0907b01ba9
-SIZE (permutation-0.3.0.tar.gz) = 16951
+TIMESTAMP = 1633535476
+SHA256 (permutation-0.3.1.tar.gz) = fb0f87097546d4ad222169601a5c2663485ed8cac2b244e7c81c27604c1a62b7
+SIZE (permutation-0.3.1.tar.gz) = 16930