mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-clickclick: build with gpep517
This commit is contained in:
parent
29184e06c3
commit
acc7d2c020
@ -3,12 +3,11 @@
|
||||
pkgname=py3-clickclick
|
||||
_pkgname=python-clickclick
|
||||
pkgver=20.10.2
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Click command line utilities"
|
||||
url="https://codeberg.org/hjacobs/python-clickclick"
|
||||
arch="noarch"
|
||||
license="Apache-2.0"
|
||||
#options="!check" # one failing test
|
||||
checkdepends="
|
||||
py3-pytest
|
||||
py3-pytest-cov
|
||||
@ -17,6 +16,7 @@ checkdepends="
|
||||
makedepends="
|
||||
py3-flake8
|
||||
py3-setuptools
|
||||
py3-gpep517
|
||||
"
|
||||
depends="
|
||||
py3-click
|
||||
@ -32,15 +32,20 @@ source="
|
||||
builddir="$srcdir/$_pkgname"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py test
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user