diff --git a/testing/py3-ncclient/APKBUILD b/testing/py3-ncclient/APKBUILD index 134e942a444..71b1c7fc58b 100644 --- a/testing/py3-ncclient/APKBUILD +++ b/testing/py3-ncclient/APKBUILD @@ -2,13 +2,13 @@ # Maintainer: pkgname=py3-ncclient pkgver=0.6.13 -pkgrel=4 +pkgrel=5 pkgdesc="Library for NETCONF clients" url="https://github.com/ncclient/ncclient" arch="noarch" license="Apache-2.0" depends="py3-lxml py3-paramiko py3-six py3-setuptools" -makedepends="py3-python-versioneer" +makedepends="py3-python-versioneer py3-gpep517" checkdepends="py3-mock py3-nose" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/ncclient/ncclient/archive/v$pkgver.tar.gz" @@ -25,15 +25,20 @@ prepare() { } build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - nosetests + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl + .testenv/bin/python3 -m nose } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="