aboutsummaryrefslogtreecommitdiff
path: root/math/py-gmpy2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-gmpy2/Makefile')
-rw-r--r--math/py-gmpy2/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/math/py-gmpy2/Makefile b/math/py-gmpy2/Makefile
index 7bd6be567896..60b09a66a1dc 100644
--- a/math/py-gmpy2/Makefile
+++ b/math/py-gmpy2/Makefile
@@ -1,5 +1,5 @@
PORTNAME= gmpy2
-DISTVERSION= 2.1.5
+DISTVERSION= 2.2.1
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
@@ -17,14 +17,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>