Skip to content
Snippets Groups Projects
Commit 08aac3ed authored by Patrycja Rosa's avatar Patrycja Rosa :cat:
Browse files

testing/py3-ncclient: build with gpep517

parent 9693497b
No related branches found
No related tags found
No related merge requests found
......@@ -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="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment