mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-ncclient: build with gpep517
This commit is contained in:
parent
9693497bd4
commit
08aac3ed56
@ -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="
|
||||
|
Loading…
Reference in New Issue
Block a user