[arch-commits] Commit in python-pyspinel/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Mon Aug 1 10:27:15 UTC 2022
Date: Monday, August 1, 2022 @ 10:27:15
Author: dvzrv
Revision: 1259646
upgpkg: python-pyspinel 1.0.3-1: Add python-pyspinel 1.0.3.
Add tests and report issues upstream.
Modified:
python-pyspinel/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++++
1 file changed, 11 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-01 08:40:51 UTC (rev 1259645)
+++ PKGBUILD 2022-08-01 10:27:15 UTC (rev 1259646)
@@ -10,6 +10,7 @@
license=(Apache)
depends=(python-pyserial)
makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha256sums=('0a48ef767bc07485836ba085baf0ad28c0d99aac5e090521b42da55d18f06ca7')
b2sums=('3e29438b3b57395ba13a41f427671ff967413598ede16ef3ebec127b92f97b9b798e61bd0a54b3a4d8789e19be385d11a02a377fc084ec3de006a35e1262a60c')
@@ -19,6 +20,16 @@
python -m build --wheel --no-isolation
}
+check() {
+ local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ cd $_name-$pkgver
+ # install to temporary location, as importlib is used
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+ # ignore broken tests: https://github.com/openthread/openthread/issues/7962
+ pytest -vv -k 'not(test_callback or test_prop_get or test_hdlc_encode or test_prop_get)' test_dir/$_site_packages/
+}
+
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
More information about the arch-commits
mailing list