From a24da23d5d11a581c9d43b37e18a5f0d1d14e774 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 1 Nov 2024 10:10:41 -0400 Subject: [PATCH] backports/py3-mapbox-earcut: move to gpep517 --- backports/py3-mapbox-earcut/APKBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/backports/py3-mapbox-earcut/APKBUILD b/backports/py3-mapbox-earcut/APKBUILD index 99db5b5..fe17670 100644 --- a/backports/py3-mapbox-earcut/APKBUILD +++ b/backports/py3-mapbox-earcut/APKBUILD @@ -1,30 +1,33 @@ # Contributor: Aiden Grossman -# Maintainer: Aiden Grossman +# Maintainer: pkgname=py3-mapbox-earcut pkgver=1.0.1 -pkgrel=0 +pkgrel=2 pkgdesc="Python bindings for the mapbox earcut c++ library" url="https://github.com/skogler/mapbox_earcut_python" arch="all" license="ISC" depends="py3-numpy" -makedepends="py3-setuptools py3-pybind11-dev python3-dev" -checkdepends="pytest" +makedepends="py3-setuptools py3-pybind11-dev python3-dev py3-gpep517" +checkdepends="py3-pytest" source="$pkgname-$pkgver.tar.gz::https://github.com/skogler/mapbox_earcut_python/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/mapbox_earcut_python-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 -m venv --clear --without-pip --system-site-packages test-env - test-env/bin/python3 setup.py install - test-env/bin/python3 -m pytest + 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="