From 1749b1deed55a2c69cefb1741c20430ed09bd626 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:12 -0400 Subject: [PATCH] testing/py3-goodreads: move from user --- {user => testing}/py3-goodreads/APKBUILD | 25 ++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) rename {user => testing}/py3-goodreads/APKBUILD (69%) diff --git a/user/py3-goodreads/APKBUILD b/testing/py3-goodreads/APKBUILD similarity index 69% rename from user/py3-goodreads/APKBUILD rename to testing/py3-goodreads/APKBUILD index 20bfe0d..cc5480a 100644 --- a/user/py3-goodreads/APKBUILD +++ b/testing/py3-goodreads/APKBUILD @@ -7,21 +7,34 @@ pkgver=0.3.2 pkgrel=0 pkgdesc="Python extension for computing string edit distances and similarities" url="https://pypi.python.org/pypi/Goodreads" -license='MIT' -arch='noarch' -depends='python3' -makedepends='py3-setuptools python3-dev py3-xmltodict py3-requests py3-rauth' +license="MIT" +arch="noarch" +makedepends=" + py3-setuptools + py3-gpep517 + py3-wheel + py3-installer + python3-dev + py3-xmltodict + py3-requests + py3-rauth + " source="$_pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/g/$_pkgname/$_pkgname-$pkgver.tar.gz" options="!check" # No testsuite builddir="$srcdir"/$_pkgname-$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 -O1 --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" 2c1f7be226bbbac3d60247a5dddc06c48ad1d72790e4ce61c8c369100358965926422958563f153661b91b561414e4b573b95098808cc25ac5c7e6edfc46e344 goodreads-0.3.2.tar.gz "