diff --git a/testing/py3-pygelbooru/APKBUILD b/testing/py3-pygelbooru/APKBUILD index 007bc9b0b1a..1ccea329449 100644 --- a/testing/py3-pygelbooru/APKBUILD +++ b/testing/py3-pygelbooru/APKBUILD @@ -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="