testing/py3-wstools: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 14:59:32 +02:00
parent 0ccefae4b1
commit b47ddc2dde

View File

@ -2,13 +2,13 @@
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=py3-wstools
pkgver=0.4.10
pkgrel=6
pkgrel=7
url="https://github.com/pycontribs/wstools"
pkgdesc="WSDL parsing services package for Web Services for Python"
arch="noarch"
license="BSD-3-Clause AND BSD-3-Clause-LBNL AND ZPL-2.0"
depends="py3-six"
makedepends="py3-pbr py3-setuptools py3-pytest-runner"
makedepends="py3-pbr py3-setuptools py3-pytest-runner py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pycontribs/wstools/archive/$pkgver.tar.gz
@ -19,15 +19,21 @@ builddir="$srcdir/wstools-$pkgver"
build() {
export PBR_VERSION=$pkgver
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 --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="