From 92fd4afbad9f8cdf67ed7c18980c8f1e90241abd Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 30 Aug 2024 23:26:25 +0200 Subject: [PATCH] testing/py3-iniparse: build with gpep517 --- testing/py3-iniparse/APKBUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/testing/py3-iniparse/APKBUILD b/testing/py3-iniparse/APKBUILD index b09ac85a984..072b9d820fa 100644 --- a/testing/py3-iniparse/APKBUILD +++ b/testing/py3-iniparse/APKBUILD @@ -3,26 +3,31 @@ pkgname=py3-iniparse _pkgname=iniparse pkgver=0.5 -pkgrel=6 +pkgrel=7 pkgdesc="INI parser library for Python" -options="!check" # Testsuite loader broken url="https://github.com/candlepin/python-iniparse" arch="noarch" license="MIT" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" subpackages="$pkgname-doc $pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +options="!check" # Testsuite loader broken replaces="py-iniparse" # Backwards compatibility provides="py-iniparse=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } -sha512sums="b3f10d1b36497c3c5c71cb0a1ac73d74d8944f4ad3b7acc4a4b0246c2f1a20c184d9af20bbb3cb8ec4f57fddfb5e103b92688847debb4200ef0583353d7f9556 iniparse-0.5.tar.gz" +sha512sums=" +b3f10d1b36497c3c5c71cb0a1ac73d74d8944f4ad3b7acc4a4b0246c2f1a20c184d9af20bbb3cb8ec4f57fddfb5e103b92688847debb4200ef0583353d7f9556 iniparse-0.5.tar.gz +"