python3-pywt: simplify testing

This commit is contained in:
Andrew J. Hesford 2024-04-21 13:02:18 -04:00
parent 2acd2e6f8c
commit 104611878f

View file

@ -4,6 +4,7 @@ version=1.6.0
revision=1
build_style=python3-pep517
build_helper="meson numpy"
make_check_target=".xbps-testdir/*/${py3_sitelib}/pywt/tests"
hostmakedepends="python3-meson-python python3-Cython"
makedepends="python3-devel"
depends="python3-numpy"
@ -15,15 +16,6 @@ homepage="https://github.com/PyWavelets/pywt"
distfiles="${homepage}/archive/v${version}.tar.gz"
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
}