From 2ff19bbc020b7ec2b5e82dbb18ceb5e1a4733f9e Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Mon, 5 Aug 2024 22:45:49 +0200 Subject: [PATCH] testing/py3-junit-xml: build with gpep517 --- testing/py3-junit-xml/APKBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/testing/py3-junit-xml/APKBUILD b/testing/py3-junit-xml/APKBUILD index 4136d13b9de..65156f952b0 100644 --- a/testing/py3-junit-xml/APKBUILD +++ b/testing/py3-junit-xml/APKBUILD @@ -2,29 +2,34 @@ pkgname=py3-junit-xml _pkgname=junit-xml pkgver=1.9 -pkgrel=2 +pkgrel=3 pkgdesc="Creates JUnit XML test result documents that can be read by tools such as Jenkins" options="!check" # 1 test fail url="https://pypi.org/project/junit-xml" arch="noarch" license="MIT" depends="py3-six" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver 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="