diff --git a/testing/py3-columnize/APKBUILD b/testing/py3-columnize/APKBUILD index edc07d8bd63..0251107515b 100644 --- a/testing/py3-columnize/APKBUILD +++ b/testing/py3-columnize/APKBUILD @@ -2,30 +2,36 @@ # Maintainer: Fabian Affolter pkgname=py3-columnize pkgver=0.3.11 -pkgrel=3 +pkgrel=4 pkgdesc="Python module to align in columns a simple list" url="https://github.com/rocky/pycolumnize" arch="noarch" license="MIT" -replaces="py-columnize" # for backwards compatibility -provides="py-columnize=$pkgver-r$pkgrel" # for backwards compatibility depends="python3" -makedepends="py3-setuptools py3-nose" +makedepends="py3-setuptools py3-nose py3-gpep517" checkdepends="py3-pytest py3-mock py3-pytest-mock" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/c/columnize/columnize-$pkgver.tar.gz" builddir="$srcdir"/columnize-$pkgver +replaces="py-columnize" # for backwards compatibility +provides="py-columnize=$pkgver-r$pkgrel" # for backwards compatibility + build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH=build/lib pytest + 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="