From 88d21c0288f216ebbf6ed1289bc24dec39f74e8c Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Tue, 6 Aug 2024 14:06:14 +0200 Subject: [PATCH] testing/py3-flake8-polyfill: build with gpep517 --- testing/py3-flake8-polyfill/APKBUILD | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/testing/py3-flake8-polyfill/APKBUILD b/testing/py3-flake8-polyfill/APKBUILD index f3066a8500a..c76c2b546d0 100644 --- a/testing/py3-flake8-polyfill/APKBUILD +++ b/testing/py3-flake8-polyfill/APKBUILD @@ -1,27 +1,35 @@ # Maintainer: Natanael Copa pkgname=py3-flake8-polyfill pkgver=1.0.2 -pkgrel=4 +pkgrel=5 pkgdesc="compatibility helpers for Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously" url="https://gitlab.com/pycqa/flake8-polyfill" arch="all" license="MIT" depends="py3-flake8" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/f/flake8-polyfill/flake8-polyfill-$pkgver.tar.gz" builddir="$srcdir/flake8-polyfill-$pkgver" +options="!check" # no tests ran build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 setup.py test + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl + .testenv/bin/python3 -m unittest discover } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } -sha512sums="767a599aacbe87328b3e36bd85e0841870760ed9bd95dd3a4a9084edc6f0ae89f8203d565c2b075f16f1db21b647c17b2aa59b08e4702109d7e5f79f36d9f3fa flake8-polyfill-1.0.2.tar.gz" +sha512sums=" +767a599aacbe87328b3e36bd85e0841870760ed9bd95dd3a4a9084edc6f0ae89f8203d565c2b075f16f1db21b647c17b2aa59b08e4702109d7e5f79f36d9f3fa flake8-polyfill-1.0.2.tar.gz +"