git: d056d1c79c66 - main - math/py-gmpy2: update 2.1.5 → 2.2.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 09 Jul 2024 10:08:49 UTC
The branch main has been updated by yuri:

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

commit d056d1c79c66aef3244ef5ee5732139092c3cfea
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-09 10:08:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-09 10:08:41 +0000

    math/py-gmpy2: update 2.1.5 → 2.2.0
    
    Reported by:    portscout
---
 math/py-gmpy2/Makefile | 9 +++------
 math/py-gmpy2/distinfo | 6 +++---
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/math/py-gmpy2/Makefile b/math/py-gmpy2/Makefile
index 7bd6be567896..723883e0c0dc 100644
--- a/math/py-gmpy2/Makefile
+++ b/math/py-gmpy2/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	gmpy2
-DISTVERSION=	2.1.5
-PORTREVISION=	1
+DISTVERSION=	2.2.0
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,14 +16,12 @@ LIB_DEPENDS=	libgmp.so:math/gmp \
 		libmpfr.so:math/mpfr
 
 USES=		localbase python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	distutils autoplist pytest
 
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC=	${WRKSRC}/test
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gmpy2/gmpy2*.so
 
-do-test: # pytest isn't currently supported, see https://github.com/aleaxit/gmpy/issues/403#issuecomment-1484584428
-	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test/runtests.py
-
 .include <bsd.port.mk>
diff --git a/math/py-gmpy2/distinfo b/math/py-gmpy2/distinfo
index 405974727b2b..7b7fc4c6a974 100644
--- a/math/py-gmpy2/distinfo
+++ b/math/py-gmpy2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1679897286
-SHA256 (gmpy2-2.1.5.tar.gz) = bc297f1fd8c377ae67a4f493fc0f926e5d1b157e5c342e30a4d84dc7b9f95d96
-SIZE (gmpy2-2.1.5.tar.gz) = 261709
+TIMESTAMP = 1720517870
+SHA256 (gmpy2-2.2.0.tar.gz) = e19e62dfeb1e4a57079f0bf51c51dec30633d9fe9e89cb9a083e05e4823afa70
+SIZE (gmpy2-2.2.0.tar.gz) = 233943