From 481b88914bed5fbd724e46cc190642f8172f53f1 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Wed, 7 Aug 2024 14:44:28 +0200 Subject: [PATCH] testing/py3-pygfm: build with gpep517 --- testing/py3-pygfm/APKBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/testing/py3-pygfm/APKBUILD b/testing/py3-pygfm/APKBUILD index 4f4422a7e6b..d2c095ce72d 100644 --- a/testing/py3-pygfm/APKBUILD +++ b/testing/py3-pygfm/APKBUILD @@ -4,14 +4,14 @@ pkgname=py3-pygfm _pkgname=py-gfm pkgver=2.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="Github-Flavored Markdown for Python-Markdown" options="!check" url="https://github.com/zopieux/py-gfm" arch="noarch !armv7" license="BSD-3-Clause" depends="python3 py3-markdown" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" checkdepends="py3-codecov py3-coverage py3-coveralls" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/Zopieux/py-gfm/archive/$pkgver.tar.gz" @@ -21,15 +21,20 @@ replaces="py-pygfm" # Backwards compatibility provides="py-pygfm=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 test.py + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl + .testenv/bin/python3 test.py } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="