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,24 +1,35 @@ PORTNAME= permutation -DISTVERSION= 0.3.0 +DISTVERSION= 0.3.1 CATEGORIES= math python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org 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 NO_ARCH= yes pre-configure: # permutation is officially built with "build" (https://github.com/pypa/build), but this is easily circumvented with this simple setup.py @( \ ${ECHO} "from setuptools import setup" && \ ${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 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