testing/py3-click-threading: build with gpep517

This commit is contained in:
ptrcnull 2024-08-08 20:09:50 +02:00
parent 249173337d
commit 3dec190daf

View File

@ -3,28 +3,33 @@
pkgname=py3-click-threading
_pyname=click-threading
pkgver=0.5.0
pkgrel=4
pkgrel=5
pkgdesc="Utilities for multithreading in click"
url="https://github.com/click-contrib/click-threading"
arch="noarch"
license="MIT"
depends="python3 py3-click"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$PWD/build/lib" pytest -v
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="