mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-arpeggio: build with gpep517
This commit is contained in:
parent
b68a797d63
commit
22c7a2b330
@ -2,28 +2,33 @@
|
||||
# Maintainer: Michał Polański <michal@polanski.me>
|
||||
pkgname=py3-arpeggio
|
||||
pkgver=2.0.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Recursive descent parser based on PEG grammars"
|
||||
url="https://github.com/textX/Arpeggio"
|
||||
license="MIT"
|
||||
arch="noarch"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://github.com/textX/Arpeggio/archive/$pkgver/py3-arpeggio-$pkgver.tar.gz"
|
||||
builddir="$srcdir/Arpeggio-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest
|
||||
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
|
||||
|
||||
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/arpeggio/tests
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user