From 03aec9e9586c2fef3c478361180cb345426849ef Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:19 -0400 Subject: [PATCH] testing/py3-ipware: move from user --- {user => testing}/py3-ipware/APKBUILD | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) rename {user => testing}/py3-ipware/APKBUILD (76%) diff --git a/user/py3-ipware/APKBUILD b/testing/py3-ipware/APKBUILD similarity index 76% rename from user/py3-ipware/APKBUILD rename to testing/py3-ipware/APKBUILD index 466a683..2ca8fca 100644 --- a/user/py3-ipware/APKBUILD +++ b/testing/py3-ipware/APKBUILD @@ -9,19 +9,28 @@ arch="noarch" pkgdesc="A python package for server applications to retrieve client's IP address" url="https://pypi.python.org/project/$_pyname" license="MIT" -depends='python3' -makedepends='py3-setuptools' +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " options="!check" # No testsuite source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver +subpackages="$pkgname-pyc" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" 1e90bf41abf9e477ff5f8d2387584120425002b06ea64aa67368892a41bbbeda08a09e03e5c4c691dc82976706bc84824e27ac6a6f0f8d2a53fb658dd272f798 py3-ipware-0.9.0.tar.gz "