From 0dc16028e7a3aa121d7d1dee373a7114da669566 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 30 Aug 2024 23:25:25 +0200 Subject: [PATCH] testing/py3-infinity: build with gpep517 --- testing/py3-infinity/APKBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/testing/py3-infinity/APKBUILD b/testing/py3-infinity/APKBUILD index 7331ac65efc..d35fcd1ab11 100644 --- a/testing/py3-infinity/APKBUILD +++ b/testing/py3-infinity/APKBUILD @@ -3,13 +3,13 @@ pkgname=py3-infinity _pkgname=infinity pkgver=1.5 -pkgrel=5 +pkgrel=6 pkgdesc="All-in-one infinity value for Python" url="https://github.com/kvesteri/infinity" arch="noarch" license="BSD-3-Clause" depends="python3" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" checkdepends="py3-pytest py3-six" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" @@ -19,15 +19,20 @@ replaces="py-infinity" # Backwards compatibility provides="py-infinity=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - py.test-3 + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="