mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/py3-tappy: switch to gpep517
This commit is contained in:
parent
0980058a65
commit
392e32e03c
@ -2,13 +2,13 @@
|
||||
pkgname=py3-tappy
|
||||
_pkgname=tap.py
|
||||
pkgver=3.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Python3 Test Anything Protocol (TAP) tools"
|
||||
url="https://github.com/python-tap/tappy"
|
||||
arch="noarch"
|
||||
license="BSD-2-Clause"
|
||||
depends="python3"
|
||||
makedepends="py3-babel py3-setuptools"
|
||||
makedepends="py3-babel py3-gpep517 py3-setuptools py3-wheel"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
@ -17,15 +17,17 @@ replaces="py-tappy" # Backwards compatibility
|
||||
provides="py-tappy=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m tap
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m tap
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user