Skip to content

Commit

Permalink
math/py-mpmath: Update DEPENDS
Browse files Browse the repository at this point in the history
Remove DEPRECATED mark
Add do-test
  • Loading branch information
wenheping committed Jul 1, 2023
1 parent 0f3f003 commit 9b79dc4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions math/py-mpmath/Makefile
@@ -1,5 +1,6 @@
PORTNAME= mpmath
PORTVERSION= 1.3.0
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -10,15 +11,16 @@ WWW= https://www.mpmath.org/

LICENSE= BSD3CLAUSE

DEPRECATED= Depends on expired math/py-gmpy
EXPIRATION_DATE=2023-09-30

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy>=0:math/py-gmpy@${PY_FLAVOR} \
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy2>=2.1.0:math/py-gmpy2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy2>=2.1.0:math/py-gmpy2@${PY_FLAVOR}

USES= python
USE_PYTHON= distutils autoplist
USE_PYTHON= distutils autoplist pytest

NO_ARCH= yes

do-test:
@cd ${WRKSRC}/mpmath/tests && ${PYTHON_CMD} runtests.py

.include <bsd.port.mk>

0 comments on commit 9b79dc4

Please sign in to comment.