From 283f2505cf13b39d9805a10145d4f20c52f4696f Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:48 -0400 Subject: [PATCH] testing/py3-tika: move from user --- {user => testing}/py3-tika/APKBUILD | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) rename {user => testing}/py3-tika/APKBUILD (69%) diff --git a/user/py3-tika/APKBUILD b/testing/py3-tika/APKBUILD similarity index 69% rename from user/py3-tika/APKBUILD rename to testing/py3-tika/APKBUILD index a7a7d1b..b660162 100644 --- a/user/py3-tika/APKBUILD +++ b/testing/py3-tika/APKBUILD @@ -9,19 +9,32 @@ arch="noarch" pkgdesc="Apache Tika Python library" url="https://pypi.python.org/project/$_pyname" license="Apache-2.0" -depends="python3" -makedepends="py3-setuptools" -options="!check" # No testsuite +makedepends=" + py3-setuptools + py3-gpep517 + py3-wheel + py3-installer + " +options="!check" # Failing 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 +} + +check() { + pytest -v } package() { - python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" 092986afd0968d41b6a0274b1f1cac5f6a168bc79cea920f65543c46b6541b6b02eceb0ae89fc254b709421dd75ebe50aad0f17a52becbdb27a541b80a08a0ae py3-tika-2.6.0.tar.gz "