testing/py3-pygelbooru: build with gpep517

This commit is contained in:
ptrcnull 2024-09-02 22:33:39 +02:00
parent 08aac3ed56
commit e8be7b650a

View File

@ -3,30 +3,28 @@
pkgname=py3-pygelbooru pkgname=py3-pygelbooru
_pkgreal=pygelbooru _pkgreal=pygelbooru
pkgver=0.5.0 pkgver=0.5.0
pkgrel=3 pkgrel=4
pkgdesc="unofficial and lightweight asynchronous library for Gelbooru compatible API" pkgdesc="unofficial and lightweight asynchronous library for Gelbooru compatible API"
url="https://github.com/MakotoAme/pygelbooru" url="https://github.com/MakotoAme/pygelbooru"
arch="noarch" arch="noarch"
license="GPL-3" license="GPL-3"
depends="python3 py3-aiohttp py3-furl py3-xmltodict" depends="python3 py3-aiohttp py3-furl py3-xmltodict"
makedepends="py3-setuptools" makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz" source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" # no tests ran
build() { build() {
python3 setup.py build gpep517 build-wheel \
} --wheel-dir .dist \
--output-fd 3 3>&1 >&2
check() {
python3 setup.py test
} }
package() { package() {
python3 setup.py install \ gpep517 install-wheel --destdir "$pkgdir" \
--prefix=/usr \ .dist/*.whl
--root="$pkgdir" \
--single-version-externally-managed
} }
sha512sums=" sha512sums="