mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/py3-pygelbooru: build with gpep517
This commit is contained in:
parent
08aac3ed56
commit
e8be7b650a
@ -3,30 +3,28 @@
|
||||
pkgname=py3-pygelbooru
|
||||
_pkgreal=pygelbooru
|
||||
pkgver=0.5.0
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="unofficial and lightweight asynchronous library for Gelbooru compatible API"
|
||||
url="https://github.com/MakotoAme/pygelbooru"
|
||||
arch="noarch"
|
||||
license="GPL-3"
|
||||
depends="python3 py3-aiohttp py3-furl py3-xmltodict"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
options="!check" # no tests ran
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py test
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install \
|
||||
--prefix=/usr \
|
||||
--root="$pkgdir" \
|
||||
--single-version-externally-managed
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user