diff --git a/main/py3-future/APKBUILD b/main/py3-future/APKBUILD index 8bddcd24ad5..9de85b8c4e3 100644 --- a/main/py3-future/APKBUILD +++ b/main/py3-future/APKBUILD @@ -3,14 +3,14 @@ pkgname=py3-future _pkgname=future pkgver=0.18.3 -pkgrel=3 +pkgrel=4 pkgdesc="Easy, clean, reliable Python 2/3 compatibility" url="https://python-future.org/" arch="noarch" license="MIT" depends="python3" # It can be built without it but it misses a lot of functionality -makedepends="py3-setuptools" +makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz @@ -23,15 +23,20 @@ replaces="py-future" # Backwards compatibility provides="py-future=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH="$builddir/build/lib" 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="