From 26c0129d88894e210ad2309cd0b15c23ff86f619 Mon Sep 17 00:00:00 2001 From: omni Date: Sun, 5 May 2024 21:23:04 +0000 Subject: [PATCH] community/py3-apipkg: upgrade to 3.0.2 & switch to gpep517 --- community/py3-apipkg/APKBUILD | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/community/py3-apipkg/APKBUILD b/community/py3-apipkg/APKBUILD index 7200b9244dc..5e8e73082e5 100644 --- a/community/py3-apipkg/APKBUILD +++ b/community/py3-apipkg/APKBUILD @@ -1,35 +1,35 @@ # Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-apipkg -_pkgname=apipkg -pkgver=2.1.0 -pkgrel=3 +pkgver=3.0.2 +pkgrel=0 pkgdesc="apipkg: namespace control and lazy-import mechanism" url="https://github.com/pytest-dev/apipkg" arch="noarch" license="MIT" depends="python3" -makedepends="py3-setuptools py3-setuptools_scm" +makedepends="py3-gpep517 py3-hatch-vcs py3-setuptools py3-wheel" checkdepends="py3-pytest" +options="!check" # https://github.com/pytest-dev/apipkg/issues/55 subpackages="$pkgname-pyc" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver - -replaces="py-apipkg" # Backwards compatibility -provides="py-apipkg=$pkgver-r$pkgrel" # Backwards compatibility +source="https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz" +builddir="$srcdir"/apipkg-$pkgver build() { - python3 setup.py build + gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 + } check() { - PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --skip-build --root="$pkgdir" + python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" -2281ffc999feddcc6073edcbb8512ded4240aaa1b472a81bbbd942da1601319ab6038387e08a2a14c962995ce94bab2e99f5a7747f8744e6af8d97abd076203b apipkg-2.1.0.tar.gz +82cacd3cb8074a5616c6c45bc1742e0774345e9e6f6a0e6f1786d23e2a8fe55f7330e9011de297d4decf7020aa737630db0b1063fe604daec544e754a92f7a0a apipkg-3.0.2.tar.gz "