mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/exabgp: build with gpep517
This commit is contained in:
parent
c4fe064348
commit
c521887980
@ -2,13 +2,13 @@
|
||||
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
|
||||
pkgname=exabgp
|
||||
pkgver=4.2.21
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="BGP swiss army knife of networking"
|
||||
url="https://github.com/Exa-Networks/exabgp"
|
||||
arch="noarch"
|
||||
license="BSD-3-Clause"
|
||||
depends="py3-six py3-parsing py3-bitstring"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-doc $pkgname-openrc $pkgname-pyc"
|
||||
pkgusers="exabgp"
|
||||
@ -21,15 +21,20 @@ source="exabgp-$pkgver.tar.gz::https://github.com/Exa-Networks/exabgp/archive/re
|
||||
"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH="$builddir"/build/lib/ pytest
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --root="$pkgdir/"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
rm -rf "$pkgdir"/usr/etc
|
||||
install -Dm644 -t "$pkgdir"/etc/exabgp/ "$builddir"/etc/exabgp/*.conf
|
||||
install -Dm644 -t "$pkgdir"/etc/exabgp/ "$builddir"/etc/exabgp/*.run
|
||||
|
Loading…
Reference in New Issue
Block a user