mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-preggy: build with gpep517
This commit is contained in:
parent
eea253dd18
commit
66d74eaa56
@ -3,24 +3,28 @@
|
||||
pkgname=py3-preggy
|
||||
_pkgname=preggy
|
||||
pkgver=1.4.4
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="assertion library for Python"
|
||||
options="!check" # no test suite
|
||||
url="http://heynemann.github.io/preggy"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3 py3-six py3-unidecode"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-doc $pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
|
||||
install -Dm644 README.md "$pkgdir"/usr/share/licenses/$pkgname/README.md
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user