From 06262d0c507762981d5f94c387ac2b8f6e2efb9d Mon Sep 17 00:00:00 2001 From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org> Date: Fri, 24 Nov 2023 04:55:29 +0000 Subject: [PATCH] testing/py3-owslib: upgrade to 0.29.3 & use gpep517 packaging --- testing/py3-owslib/APKBUILD | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/testing/py3-owslib/APKBUILD b/testing/py3-owslib/APKBUILD index 19b9b362517b..f66bdcb1a869 100644 --- a/testing/py3-owslib/APKBUILD +++ b/testing/py3-owslib/APKBUILD @@ -3,7 +3,7 @@ pkgname=py3-owslib #_pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=OWSLib -pkgver=0.29.2 +pkgver=0.29.3 pkgrel=0 pkgdesc="OGC Web Service utility library" url="http://packages.python.org/pypi/OWSLib" @@ -11,13 +11,15 @@ arch="noarch" license="BSD-3-Clause" depends="python3 py3-dateutil py3-tz py3-requests py3-lxml" checkdepends="python3-dev py3-pytest py3-tox py3-lxml" -makedepends="py3-setuptools" +makedepends="py3-gpep517 py3-setuptools py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/O/OWSLib/OWSLib-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { @@ -25,13 +27,10 @@ check() { } package() { - PYTHONPATH=$pkgdir$(python3 -c "import site; print(site.getsitepackages()[0])") \ - python3 setup.py install \ - --prefix=/usr \ - --root="$pkgdir" \ - --single-version-externally-managed + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } sha512sums=" -bf645a36dc2acb41aaea7e8cce4ee3077ee7ff646ab89713fa70d935e158f5ee59e7d602141d0b51fac3658f5e78ef39d6de3ef7d64c0752a38e06c7fe94787d OWSLib-0.29.2.tar.gz +fc503be2b2e7d7f539283c7602831097bda680a74133debacb0a51116a25c261b972e3497e69ccea27329672183b447e6e299e7e8cc3853be1341db2cef427e2 OWSLib-0.29.3.tar.gz " -- GitLab