From b4ad7dc77cb26c305506d03b7e8c56fa5d275ff9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:22 -0400 Subject: [PATCH] testing/py3-langdetect: move from user --- {user => testing}/py3-langdetect/APKBUILD | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) rename {user => testing}/py3-langdetect/APKBUILD (72%) diff --git a/user/py3-langdetect/APKBUILD b/testing/py3-langdetect/APKBUILD similarity index 72% rename from user/py3-langdetect/APKBUILD rename to testing/py3-langdetect/APKBUILD index 4bb2de8..3846251 100644 --- a/user/py3-langdetect/APKBUILD +++ b/testing/py3-langdetect/APKBUILD @@ -9,13 +9,26 @@ arch="noarch" pkgdesc="Language detection library ported from Google's language-detection" url="https://pypi.python.org/project/$_pyname" license="Apache-2.0" -depends="py3-six" -makedepends="py3-setuptools py3-pytest" +depends=" + py3-six + " +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " +checkdepends=" + py3-pytest +" 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 } check() { @@ -23,8 +36,10 @@ check() { } package() { - python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db py3-langdetect-1.0.9.tar.gz "