Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit c9e6251

Browse files
dvzrvsvntogit
authored and
svntogit
committed
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: briansmith/ring#1444 Build using PEP517 integration for maturin. git-svn-id: file:///srv/repos/svn-community/svn@1447298 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 1e16562 commit c9e6251

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

trunk/PKGBUILD

+32-13
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,56 @@
11
# Maintainer: David Runge <[email protected]>
22

3-
_name=cmsis_pack_manager
3+
_name=cmsis-pack-manager
44
pkgname=python-cmsis-pack-manager
5-
pkgver=0.5.1
6-
pkgrel=2
5+
pkgver=0.5.2
6+
pkgrel=1
77
pkgdesc="A Rust and Python module for handling CMSIS Pack files"
88
arch=(x86_64)
99
url="https://github.com/pyocd/cmsis-pack-manager"
1010
license=(Apache)
11-
depends=(python-appdirs python-cffi python-pyyaml)
12-
makedepends=(maturin python-installer rust)
13-
checkdepends=(python-hypothesis python-jinja python-pytest)
11+
depends=(
12+
gcc-libs
13+
glibc
14+
python
15+
python-appdirs
16+
python-cffi
17+
python-pyyaml
18+
)
19+
makedepends=(
20+
python-build
21+
python-installer
22+
python-maturin
23+
python-wheel
24+
rust
25+
)
26+
checkdepends=(
27+
python-hypothesis
28+
python-jinja
29+
python-pytest
30+
)
1431
# disable LTO until ring can be built with it: https://github.com/briansmith/ring/issues/1444
1532
options=(!lto)
16-
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
17-
sha512sums=('08c95b17c8fe21faf0940ea15b69de4fd5d15adfb6ef2c60cf6b086276bd89251eddbda8ad665fcba2e50b35c86fc3fe7224ef0b9efa6cace76eb3432f359f7b')
18-
b2sums=('e0c0aed4c64e394c56c88f3accbf7e568d39dc3587c598923e2258ad9b18c3bd540547c89bcb283429244863556837f344fc77bbf1383ef3437a134f1f941769')
33+
# NOTE: sdist tarball broken and upstream doesn't react at all: https://github.com/pyocd/cmsis-pack-manager/issues/207
34+
# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
35+
source=($url/archive/v$pkgver/$_name-v$pkgver.tar.gz)
36+
sha512sums=('3ce4824f9de3390d24fc031b5ba9304ab056ce488df3ba355c3fa2b5abe495269da2e4e4cf85ba3d5a577fce930b8da2deae8309e5fb6f9d997989b7f84d23c5')
37+
b2sums=('059b57ad539b815476212184f16508595ab67bd6a0cc0540795ce1f5b8341bc2f94d3519fe42b3281dca8f25bb0cb368e8483c6172d4dd365b72754a4e1dc7cf')
1938

2039
build() {
2140
cd $_name-$pkgver
22-
maturin build --release --strip
41+
python -m build --wheel --no-isolation
2342
}
2443

2544
check() {
2645
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
2746

2847
cd $_name-$pkgver
29-
python -m installer --destdir=test_dir target/wheels/*.whl
30-
export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
48+
python -m installer --destdir=test_dir dist/*.whl
49+
export PYTHONPATH="$PWD/test_dir/$_site_packages:$PYTHONPATH"
3150
pytest -vv
3251
}
3352

3453
package() {
3554
cd $_name-$pkgver
36-
python -m installer --destdir="$pkgdir" target/wheels/*.whl
55+
python -m installer --destdir="$pkgdir" dist/*.whl
3756
}

0 commit comments

Comments
 (0)