From ca32d01d82414a7d369a014e7dc9079cc02ff05c Mon Sep 17 00:00:00 2001 From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org> Date: Sat, 28 Oct 2023 07:37:01 +0000 Subject: [PATCH] main/py3-fixtures: switch to gpep517 --- main/py3-fixtures/APKBUILD | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/main/py3-fixtures/APKBUILD b/main/py3-fixtures/APKBUILD index 507a5dc4790..5b6f8bb5720 100644 --- a/main/py3-fixtures/APKBUILD +++ b/main/py3-fixtures/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista pkgname=py3-fixtures pkgver=4.1.0 -pkgrel=0 +pkgrel=1 pkgdesc="Fixtures, reusable state for writing clean tests and more." url="https://pypi.org/project/fixtures/" arch="noarch" @@ -11,8 +11,15 @@ depends=" py3-pbr python3 " -makedepends="py3-setuptools" -checkdepends="py3-testtools py3-mock" +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends=" + py3-mock + py3-testtools + " subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/f/fixtures/fixtures-$pkgver.tar.gz" builddir="$srcdir/fixtures-$pkgver" @@ -22,16 +29,22 @@ replaces="py-fixtures" # Backwards compatibility provides="py-fixtures=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 -m testtools.run + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m testtools.run } package() { - python3 setup.py install --skip-build --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } + sha512sums=" 6897449fdefd07abe7714186b366fdf4505283f6747f8fa4d17044bc45da58eb36e69d89381527ccecb98e6c62c58bc6d4f558af41cbfc87b0221ae60ba71ff6 fixtures-4.1.0.tar.gz "