python3-pywt: update to 1.6.0.

This commit is contained in:
Andrew J. Hesford 2024-04-03 11:14:55 -04:00
parent 8f309cc623
commit 878c94a133
2 changed files with 22 additions and 14 deletions

View file

@ -1,11 +1,11 @@
--- ./pyproject.toml.orig 2023-11-20 08:16:21.192898967 -0500
+++ ./pyproject.toml 2023-11-20 08:16:32.003923501 -0500
@@ -18,7 +18,7 @@
# 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'",
+ "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.
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,7 +19,7 @@
# Note that building against numpy 1.x works fine too - users and
# redistributors can do this by installing the numpy version they like and
# disabling build isolation.
- "numpy>=2.0.0rc1,<2.3",
+ "numpy",
]
[project]

View file

@ -1,10 +1,9 @@
# Template file for 'python3-pywt'
pkgname=python3-pywt
version=1.5.0
version=1.6.0
revision=1
build_style=python3-pep517
build_helper="meson numpy"
make_check_target="pywt/tests"
hostmakedepends="python3-meson-python python3-Cython"
makedepends="python3-devel"
depends="python3-numpy"
@ -14,7 +13,16 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://github.com/PyWavelets/pywt"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=5aedfa9bd629f104a04fda88b92582bda38ab22282ce5048b5760b5d18e83fc9
checksum=8f2cbc64ee8142bf069447bf26bc3ff0f5e332a18062c6ca0ea033f20a4fb995
do_check() {
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
python3 -m installer --destdir "${testdir}" dist/*.whl
# Relative imports in tests preclude running from source tree
local pysite="${testdir}/${py3_sitelib}"
PYTHONPATH="${pysite}" pytest3 "${pysite}/pywt/tests"
}
post_install() {
vlicense LICENSE