mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-manuel: build with gpep517
This commit is contained in:
parent
9ca8e4bed9
commit
8874bd97e0
@ -2,13 +2,13 @@
|
||||
# Maintainer:
|
||||
pkgname=py3-manuel
|
||||
pkgver=1.12.4
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="mix and match traditional doctests with custom test syntax"
|
||||
url="https://github.com/benji-york/manuel"
|
||||
arch="noarch"
|
||||
license="Apache-2.0"
|
||||
depends="python3 py3-six"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-zope-testing"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/benji-york/manuel/archive/refs/tags/$pkgver.tar.gz"
|
||||
@ -16,15 +16,20 @@ builddir="$srcdir/manuel-$pkgver"
|
||||
options="!check" # fail matching exact string against newer dep versions
|
||||
|
||||
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 unittest discover
|
||||
}
|
||||
|
||||
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