git: dc6d24aeda34 - main - math/py-PyWavelets: rename to pywavelets and update to 1.5.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Aug 2024 14:49:53 UTC
The branch main has been updated by makc: URL: https://cgit.FreeBSD.org/ports/commit/?id=dc6d24aeda3492b9497becd979ae50d1dc466a4c commit dc6d24aeda3492b9497becd979ae50d1dc466a4c Author: Max Brazhnikov <makc@FreeBSD.org> AuthorDate: 2024-08-28 14:48:22 +0000 Commit: Max Brazhnikov <makc@FreeBSD.org> CommitDate: 2024-08-28 14:48:22 +0000 math/py-PyWavelets: rename to pywavelets and update to 1.5.0 Update to 1.5.0. The package has been renamed to pywavelets starting with 1.5.0 --- math/py-PyWavelets/distinfo | 3 -- math/py-PyWavelets/files/patch-pyproject.toml | 43 ------------------------- math/{py-PyWavelets => py-pywavelets}/Makefile | 12 +++---- math/py-pywavelets/distinfo | 3 ++ math/py-pywavelets/files/patch-pyproject.toml | 25 ++++++++++++++ math/{py-PyWavelets => py-pywavelets}/pkg-descr | 0 6 files changed, 34 insertions(+), 52 deletions(-) diff --git a/math/py-PyWavelets/distinfo b/math/py-PyWavelets/distinfo deleted file mode 100644 index 2ad92327aea6..000000000000 --- a/math/py-PyWavelets/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1724843132 -SHA256 (PyWavelets-1.4.1.tar.gz) = 6437af3ddf083118c26d8f97ab43b0724b956c9f958e9ea788659f6a2834ba93 -SIZE (PyWavelets-1.4.1.tar.gz) = 4589677 diff --git a/math/py-PyWavelets/files/patch-pyproject.toml b/math/py-PyWavelets/files/patch-pyproject.toml deleted file mode 100644 index a4df3902ae8e..000000000000 --- a/math/py-PyWavelets/files/patch-pyproject.toml +++ /dev/null @@ -1,43 +0,0 @@ ---- pyproject.toml.orig 2022-09-16 08:55:28 UTC -+++ pyproject.toml -@@ -9,39 +9,5 @@ requires = [ - "wheel", - "setuptools<65", - "Cython>=0.29.24,<3.0", -- -- # NumPy dependencies - to update these, sync from -- # https://github.com/scipy/oldest-supported-numpy/, and then -- # update minimum version to match our install_requires min version -- # ---------------------------------------------------------------- -- -- # numpy 1.19 was the first minor release to provide aarch64 wheels, but -- # wheels require fixes contained in numpy 1.19.2 -- "numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'", -- # aarch64 for py39 is covered by default requirement below -- -- # arm64 on Darwin supports Python 3.8 and above requires numpy>=1.20.0 -- "numpy==1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'", -- "numpy==1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'", -- -- # On Windows we need to avoid 1.21.6, 1.22.0 and 1.22.1 because they were -- # built with vc142. 1.22.3 is the first version that has 32-bit Windows -- # wheels *and* was built with vc141. So use that: -- "numpy==1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'", -- -- # default numpy requirements -- "numpy==1.17.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'", -- "numpy==1.19.3; python_version=='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_python_implementation != 'PyPy'", -- # Note that 1.21.3 was the first version with a complete set of 3.10 wheels, -- # however macOS was broken and it's safe C API/ABI-wise to build against 1.21.6 -- # (see oldest-supported-numpy issues gh-28 and gh-45) -- "numpy==1.21.6; python_version=='3.10' and (platform_system!='Windows' and platform_machine!='loongarch64') and platform_python_implementation != 'PyPy'", -- "numpy==1.23.3; python_version=='3.11' and platform_python_implementation != 'PyPy'", -- -- # For Python versions which aren't yet officially supported, -- # we specify an unpinned NumPy which allows source distributions -- # to be used and allows wheels to be used as soon as they -- # become available. -- "numpy; python_version>='3.12'", -- "numpy; python_version>='3.8' and platform_python_implementation=='PyPy'", -+ "numpy", - ] diff --git a/math/py-PyWavelets/Makefile b/math/py-pywavelets/Makefile similarity index 68% rename from math/py-PyWavelets/Makefile rename to math/py-pywavelets/Makefile index bcd76711e774..ffa61adc5563 100644 --- a/math/py-PyWavelets/Makefile +++ b/math/py-pywavelets/Makefile @@ -1,6 +1,5 @@ -PORTNAME= PyWavelets -PORTVERSION= 1.4.1 -PORTREVISION= 2 +PORTNAME= pywavelets +PORTVERSION= 1.5.0 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,13 +12,14 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYNUMPY} \ - ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}meson-python>=0.14:devel/meson-python@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} -USES= python +USES= python shebangfix USE_PYTHON= autoplist cython pep517 +SHEBANG_FILES= pywt/data/create_dat.py + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pywt/_extensions/*.so diff --git a/math/py-pywavelets/distinfo b/math/py-pywavelets/distinfo new file mode 100644 index 000000000000..9134427f823f --- /dev/null +++ b/math/py-pywavelets/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724847432 +SHA256 (pywavelets-1.5.0.tar.gz) = d9e25c7cabef7ccd53f5fead26ab22152fe4cb937bad7411b5d506e2b5de38f6 +SIZE (pywavelets-1.5.0.tar.gz) = 3937269 diff --git a/math/py-pywavelets/files/patch-pyproject.toml b/math/py-pywavelets/files/patch-pyproject.toml new file mode 100644 index 000000000000..4f363283cd58 --- /dev/null +++ b/math/py-pywavelets/files/patch-pyproject.toml @@ -0,0 +1,25 @@ +--- pyproject.toml.orig 2023-11-17 22:07:21 UTC ++++ pyproject.toml +@@ -9,21 +9,7 @@ requires = [ + requires = [ + "meson-python>=0.14.0", + "Cython>=0.29.35", +- +- # When numpy 2.0.0rc1 comes out, we should update this to build against 2.0, +- # and then runtime depend on the range 1.22.X to <2.3. No need to switch to +- # 1.25.2 in the meantime (1.25.x is the first version which exports older C +- # API versions by default). +- +- # default numpy requirements +- "numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'", +- "numpy==1.23.3; python_version=='3.11' and platform_python_implementation != 'PyPy'", +- "numpy==1.26.0; python_version=='3.12' and platform_python_implementation != 'PyPy'", +- # For Python versions which aren't yet officially supported, we specify an +- # unpinned NumPy which allows source distributions to be used and allows +- # wheels to be used as soon as they become available. +- "numpy; python_version>='3.13'", +- "numpy; python_version>='3.9' and platform_python_implementation=='PyPy'", ++ "numpy", + ] + + [project] diff --git a/math/py-PyWavelets/pkg-descr b/math/py-pywavelets/pkg-descr similarity index 100% rename from math/py-PyWavelets/pkg-descr rename to math/py-pywavelets/pkg-descr