git: 54ec3e6ab487 - main - math/py-gmpy2: Update 2.1.2 → 2.1.5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Mar 2023 06:40:02 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=54ec3e6ab487f655983222a0d2c0e53fc6c84c4d
commit 54ec3e6ab487f655983222a0d2c0e53fc6c84c4d
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-03-27 06:15:48 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-03-27 06:39:48 +0000
math/py-gmpy2: Update 2.1.2 → 2.1.5
Reported by: portscout
---
math/py-gmpy2/Makefile | 12 +++++++++---
math/py-gmpy2/distinfo | 6 +++---
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/math/py-gmpy2/Makefile b/math/py-gmpy2/Makefile
index 9d65ec0dbd58..07be6ff81587 100644
--- a/math/py-gmpy2/Makefile
+++ b/math/py-gmpy2/Makefile
@@ -1,23 +1,29 @@
PORTNAME= gmpy2
-DISTVERSION= 2.1.2
+DISTVERSION= 2.1.5
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= GMP/MPIR, MPFR, and MPC interface to Python
-WWW= https://pypi.org/project/gmpy2/
+WWW= https://gmpy2.readthedocs.io/en/latest/
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgmp.so:math/gmp \
libmpc.so:math/mpc \
libmpfr.so:math/mpfr
USES= localbase python
-USE_PYTHON= distutils autoplist
+USE_PYTHON= distutils autoplist pytest # 2 tests fail, see https://github.com/aleaxit/gmpy/issues/403
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gmpy2/gmpy2*.so
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest
+
.include <bsd.port.mk>
diff --git a/math/py-gmpy2/distinfo b/math/py-gmpy2/distinfo
index 2e83c5b85f74..405974727b2b 100644
--- a/math/py-gmpy2/distinfo
+++ b/math/py-gmpy2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641524654
-SHA256 (gmpy2-2.1.2.tar.gz) = da75140bca128ece795895477e53b43773e3748aa90ba6170eae7ca2c74b82d1
-SIZE (gmpy2-2.1.2.tar.gz) = 258445
+TIMESTAMP = 1679897286
+SHA256 (gmpy2-2.1.5.tar.gz) = bc297f1fd8c377ae67a4f493fc0f926e5d1b157e5c342e30a4d84dc7b9f95d96
+SIZE (gmpy2-2.1.5.tar.gz) = 261709