From e9223dc104cd3cfd79b29a3c14fc40bcec2ade57 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Thu, 21 Mar 2024 16:56:58 +0100 Subject: [PATCH] testing/py3-sphinxcontrib-nwdiag: build with gpep517 --- testing/py3-sphinxcontrib-nwdiag/APKBUILD | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/testing/py3-sphinxcontrib-nwdiag/APKBUILD b/testing/py3-sphinxcontrib-nwdiag/APKBUILD index 5faf0651333..feeadc5e17d 100644 --- a/testing/py3-sphinxcontrib-nwdiag/APKBUILD +++ b/testing/py3-sphinxcontrib-nwdiag/APKBUILD @@ -3,26 +3,29 @@ pkgname=py3-sphinxcontrib-nwdiag _pkgname=sphinxcontrib-nwdiag pkgver=2.0.0 -pkgrel=5 +pkgrel=6 pkgdesc="Sphinx nwdiag extension" url="https://pypi.org/project/sphinxcontrib-nwdiag" arch="noarch" license="BSD-2-Clause" depends="py3-nwdiag py3-sphinx" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517 py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver -replaces="py-sphinxcontrib-nwdiag" # for backwards compatibility +replaces="py-sphinxcontrib-nwdiag" # for backwards compatibility provides="py-sphinxcontrib-nwdiag=$pkgver-r$pkgrel" # for 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="a77d8259a4c1f238dec20ef0c260e6e0ad4665ab13e0124a5cdd3dc135969b44c218131746cc9f955a3dd088bf3b17e23354f8edc0409a239ca2e02d38ec645a sphinxcontrib-nwdiag-2.0.0.tar.gz"