From 68e094223e3daf3f5a931083bb583ae7291a2bcc Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 30 Aug 2024 23:23:42 +0200 Subject: [PATCH] testing/py3-aiohttp-session: build with gpep517 --- testing/py3-aiohttp-session/APKBUILD | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/testing/py3-aiohttp-session/APKBUILD b/testing/py3-aiohttp-session/APKBUILD index 1a111df28eb..d6a66777141 100644 --- a/testing/py3-aiohttp-session/APKBUILD +++ b/testing/py3-aiohttp-session/APKBUILD @@ -3,29 +3,28 @@ pkgname=py3-aiohttp-session _pkgname=aiohttp_session pkgver=2.12.0 -pkgrel=3 +pkgrel=4 pkgdesc="Sessions support for aiohttp" url="https://aiohttp-session.readthedocs.io/" arch="noarch" license="Apache-2.0" -# Requires packages for tests which are not available -options="!check" depends="py3-aiohttp" -makedepends="python3-dev py3-setuptools" +makedepends="python3-dev py3-setuptools py3-gpep517" subpackages="$pkgname-pyc" source="aiohttp-session-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-session/archive/v$pkgver.tar.gz" builddir="$srcdir"/aiohttp-session-$pkgver +# Requires packages for tests which are not available +options="!check" 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 --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="