git: 9028a1e8f568 - main - math/py-permutation: Update 0.3.0 -> 0.3.1

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 06 Oct 2021 16:12:58 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9028a1e8f5681ecae31930ad4deb99ad4b267a8c

commit 9028a1e8f5681ecae31930ad4deb99ad4b267a8c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-10-06 15:59:42 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-10-06 16:11:49 +0000

    math/py-permutation: Update 0.3.0 -> 0.3.1
    
    Reported by:    portscout
---
 math/py-permutation/Makefile | 13 ++++++++++++-
 math/py-permutation/distinfo |  6 +++---
 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