diff --git a/testing/py3-aiosasl/APKBUILD b/testing/py3-aiosasl/APKBUILD index d7ccb6499df..1732345a971 100644 --- a/testing/py3-aiosasl/APKBUILD +++ b/testing/py3-aiosasl/APKBUILD @@ -3,24 +3,28 @@ pkgname=py3-aiosasl _pkgname=aiosasl pkgver=0.5.0 -pkgrel=3 +pkgrel=4 pkgdesc="A generic asyncio-based SASL authentication library." url="https://pypi.org/project/aiosasl/" arch="all" license="LGPL-3.0-only" depends="python3" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" subpackages="$pkgname-doc $pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" options="!check" # tests not included in source package. build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl + install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \ -t "$pkgdir"/usr/share/licenses/$pkgname }