From 4e2e82afd1aec33e227e32b90dd185226ef54cc2 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Mon, 18 Mar 2024 14:52:58 +0100 Subject: [PATCH] testing/py3-bottle-session: build with gpep517 --- testing/py3-bottle-session/APKBUILD | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/testing/py3-bottle-session/APKBUILD b/testing/py3-bottle-session/APKBUILD index 6028052518e..81105d9c20b 100644 --- a/testing/py3-bottle-session/APKBUILD +++ b/testing/py3-bottle-session/APKBUILD @@ -3,28 +3,31 @@ pkgname=py3-bottle-session _pkgname=bottle-session pkgver=1.0 -pkgrel=4 +pkgrel=5 pkgdesc="Bottle session plugin" options="!check" # No testsuite on tarball url="https://bitbucket.org/devries/bottle-session" arch="noarch" license="Artistic-2.0" depends="python3 py3-bottle py3-redis" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517 py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -replaces="py-bottle-session" # Backwards compat +replaces="py-bottle-session" # Backwards compat provides="py-bottle-session=$pkgver-r$pkgrel" # Backwards compat 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 } sha512sums="fe1888d26d20e1a759f31276737b5091f5ba7fc324b07ab778fc3e5b9083b5956bc215824c8fa297ebac7730de22cc6b034efa5b2eafdbfab9bf4019b696c7f2 bottle-session-1.0.tar.gz"