Date: Tuesday, April 18, 2023 @ 22:26:58 Author: dvzrv Revision: 1447298
upgpkg: python-cmsis-pack-manager 0.5.2-1: Upgrade to 0.5.2. Switch to github source tarball as pypi sdist tarball is just broken: https://github.com/briansmith/ring/issues/1444 Build using PEP517 integration for maturin. Modified: python-cmsis-pack-manager/trunk/PKGBUILD ----------+ PKGBUILD | 45 ++++++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-18 22:24:59 UTC (rev 1447297) +++ PKGBUILD 2023-04-18 22:26:58 UTC (rev 1447298) @@ -1,25 +1,44 @@ # Maintainer: David Runge <[email protected]> -_name=cmsis_pack_manager +_name=cmsis-pack-manager pkgname=python-cmsis-pack-manager -pkgver=0.5.1 -pkgrel=2 +pkgver=0.5.2 +pkgrel=1 pkgdesc="A Rust and Python module for handling CMSIS Pack files" arch=(x86_64) url="https://github.com/pyocd/cmsis-pack-manager" license=(Apache) -depends=(python-appdirs python-cffi python-pyyaml) -makedepends=(maturin python-installer rust) -checkdepends=(python-hypothesis python-jinja python-pytest) +depends=( + gcc-libs + glibc + python + python-appdirs + python-cffi + python-pyyaml +) +makedepends=( + python-build + python-installer + python-maturin + python-wheel + rust +) +checkdepends=( + python-hypothesis + python-jinja + python-pytest +) # disable LTO until ring can be built with it: https://github.com/briansmith/ring/issues/1444 options=(!lto) -source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) -sha512sums=('08c95b17c8fe21faf0940ea15b69de4fd5d15adfb6ef2c60cf6b086276bd89251eddbda8ad665fcba2e50b35c86fc3fe7224ef0b9efa6cace76eb3432f359f7b') -b2sums=('e0c0aed4c64e394c56c88f3accbf7e568d39dc3587c598923e2258ad9b18c3bd540547c89bcb283429244863556837f344fc77bbf1383ef3437a134f1f941769') +# NOTE: sdist tarball broken and upstream doesn't react at all: https://github.com/pyocd/cmsis-pack-manager/issues/207 +# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) +source=($url/archive/v$pkgver/$_name-v$pkgver.tar.gz) +sha512sums=('3ce4824f9de3390d24fc031b5ba9304ab056ce488df3ba355c3fa2b5abe495269da2e4e4cf85ba3d5a577fce930b8da2deae8309e5fb6f9d997989b7f84d23c5') +b2sums=('059b57ad539b815476212184f16508595ab67bd6a0cc0540795ce1f5b8341bc2f94d3519fe42b3281dca8f25bb0cb368e8483c6172d4dd365b72754a4e1dc7cf') build() { cd $_name-$pkgver - maturin build --release --strip + python -m build --wheel --no-isolation } check() { @@ -26,12 +45,12 @@ local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])") cd $_name-$pkgver - python -m installer --destdir=test_dir target/wheels/*.whl - export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" + python -m installer --destdir=test_dir dist/*.whl + export PYTHONPATH="$PWD/test_dir/$_site_packages:$PYTHONPATH" pytest -vv } package() { cd $_name-$pkgver - python -m installer --destdir="$pkgdir" target/wheels/*.whl + python -m installer --destdir="$pkgdir" dist/*.whl }
