mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-luhn: build with gpep517
This commit is contained in:
parent
9aec9e6357
commit
29184e06c3
@ -3,13 +3,13 @@
|
||||
pkgname=py3-luhn
|
||||
_pkgname=luhn
|
||||
pkgver=0.2.0
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
pkgdesc="Generate and verify Luhn check digits"
|
||||
url="https://github.com/mmcloughlin/luhn"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-amqp"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-nose"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$_pkgname-$pkgver.tar.gz::https://github.com/mmcloughlin/luhn/archive/$pkgver.tar.gz"
|
||||
@ -19,15 +19,22 @@ replaces="py-luhn" # Backwards compatibility
|
||||
provides="py-luhn=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
nosetests -v
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m nose -v
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="43732155358352fa25ca4c25e59a40efd98250e4296f75cdd1d2050a79a1ac26110f024a585159a626784dbfd4b6def3c85b2594c6ecf4e8b74a9cd165870c78 luhn-0.2.0.tar.gz"
|
||||
sha512sums="
|
||||
43732155358352fa25ca4c25e59a40efd98250e4296f75cdd1d2050a79a1ac26110f024a585159a626784dbfd4b6def3c85b2594c6ecf4e8b74a9cd165870c78 luhn-0.2.0.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user