From a285d284afc97f71d3382e7d041dbcceea06665f Mon Sep 17 00:00:00 2001 From: ptrcnull <git@ptrcnull.me> Date: Sat, 10 Aug 2024 00:25:51 +0200 Subject: [PATCH] testing/py3-pyzor: build with gpep517 --- testing/py3-pyzor/APKBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/testing/py3-pyzor/APKBUILD b/testing/py3-pyzor/APKBUILD index 557621ece140..cc31cdc0cd37 100644 --- a/testing/py3-pyzor/APKBUILD +++ b/testing/py3-pyzor/APKBUILD @@ -3,25 +3,32 @@ pkgname=py3-pyzor _pkgname=pyzor pkgver=1.0.0 -pkgrel=10 +pkgrel=11 pkgdesc="Python implementation of a spam-blocking networked system that use spam signatures to identify them." url="https://pypi.org/project/pyzor/" arch="noarch" license="GPL-2.0-only" depends="python3" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +options="!check" # tests not included replaces="py-pyzor" # Backwards compatibility provides="py-pyzor=$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="5ce22d23dac02f3b14b7e87f1049cdcd06b8b02a0214898bf9946d966e3d5e1e5788d82cdf7883641d0291dcf949483a926989482cdd344460d9f6a8e7182cc5 pyzor-1.0.0.tar.gz" + +sha512sums=" +5ce22d23dac02f3b14b7e87f1049cdcd06b8b02a0214898bf9946d966e3d5e1e5788d82cdf7883641d0291dcf949483a926989482cdd344460d9f6a8e7182cc5 pyzor-1.0.0.tar.gz +" -- GitLab