diff --git a/math/py-POT/Makefile b/math/py-POT/Makefile index d2c7dfde345d..e4aa17fb36f0 100644 --- a/math/py-POT/Makefile +++ b/math/py-POT/Makefile @@ -1,30 +1,32 @@ PORTNAME= POT -DISTVERSION= 0.9.3 -PORTREVISION= 2 +DISTVERSION= 0.9.7.post1 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pot-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Python Optimal Transport Library WWW= https://pythonot.github.io/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ - ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=2.0.0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=2.0.0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>=1.6:science/py-scipy@${PY_FLAVOR} USES= python USE_PYTHON= pep517 cython autoplist pytest # expects newer pytest than 7.4.4: AttributeError: module pytest has no attribute skip_backend TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/test post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ot/lp/emd_wrap${PYTHON_TAG}.so +# tests as of 0.9.7.post1: 67 passed, 10 skipped, 29 warnings, 123 errors (errors from optional deps) + .include diff --git a/math/py-POT/distinfo b/math/py-POT/distinfo index 9b06c3362dbc..483ea5f77eeb 100644 --- a/math/py-POT/distinfo +++ b/math/py-POT/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1712367723 -SHA256 (POT-0.9.3.tar.gz) = eecf2394390a73472e727ef75f7c801fc47509039f00c40f8fc64fdeea617c86 -SIZE (POT-0.9.3.tar.gz) = 373598 +TIMESTAMP = 1785617504 +SHA256 (pot-0.9.7.post1.tar.gz) = 2edd70845047ac2d378487b980a2bffb5ff58e9b92b7133896ff5753f6300cec +SIZE (pot-0.9.7.post1.tar.gz) = 1842013 diff --git a/math/py-POT/files/patch-pyproject.toml b/math/py-POT/files/patch-pyproject.toml deleted file mode 100644 index c2896e3923c0..000000000000 --- a/math/py-POT/files/patch-pyproject.toml +++ /dev/null @@ -1,9 +0,0 @@ ---- pyproject.toml.orig 2023-12-23 09:30:10 UTC -+++ pyproject.toml -@@ -1,3 +1,3 @@ - [build-system] --requires = ["setuptools", "wheel", "oldest-supported-numpy", "cython>=0.23"] --build-backend = "setuptools.build_meta" -\ No newline at end of file -+requires = ["setuptools", "wheel", "numpy", "cython>=0.23"] -+build-backend = "setuptools.build_meta" diff --git a/math/py-POT/files/patch-setup.py b/math/py-POT/files/patch-setup.py deleted file mode 100644 index dcca65464a91..000000000000 --- a/math/py-POT/files/patch-setup.py +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 2023-12-23 09:28:27 UTC -+++ setup.py -@@ -68,7 +68,7 @@ setup( - license='MIT', - scripts=[], - data_files=[], -- setup_requires=["oldest-supported-numpy", "cython>=0.23"], -+ setup_requires=["numpy", "cython>=0.23"], - install_requires=["numpy>=1.16", "scipy>=1.6"], - python_requires=">=3.6", - classifiers=[