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

testing/py3-nwdiag: build with gpep517

parent f6743365
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,13 @@
pkgname=py3-nwdiag
_pkgname=nwdiag
pkgver=3.0.0
pkgrel=2
pkgrel=3
pkgdesc="Generate network-diagram image file from spec-text file"
url="https://pypi.org/project/nwdiag"
arch="noarch"
license="Apache-2.0"
depends="py3-funcparserlib py3-blockdiag py3-pillow"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
......@@ -18,11 +18,14 @@ replaces="py-nwdiag" # for backwards compatibility
provides="py-nwdiag=$pkgver-r$pkgrel" # for backwards compatibility
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
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/rackdiag/tests
}
......
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