mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-bandwidth-sdk: build with gpep517
This commit is contained in:
parent
dde9cb201e
commit
7d03daa271
@ -1,27 +1,35 @@
|
|||||||
# Maintainer:
|
# Maintainer:
|
||||||
pkgname=py3-bandwidth-sdk
|
pkgname=py3-bandwidth-sdk
|
||||||
pkgver=3.1.0
|
pkgver=3.1.0
|
||||||
pkgrel=7
|
pkgrel=8
|
||||||
pkgdesc="python helpers for using bandwidth.com API"
|
pkgdesc="python helpers for using bandwidth.com API"
|
||||||
url="https://pypi.org/project/bandwidth-sdk/"
|
url="https://pypi.org/project/bandwidth-sdk/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="py3-requests py3-dateutil py3-lxml py3-six"
|
depends="py3-requests py3-dateutil py3-lxml py3-six"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="bandwidth-sdk-$pkgver.tar.gz::https://github.com/Bandwidth/python-bandwidth/archive/v$pkgver.tar.gz"
|
source="bandwidth-sdk-$pkgver.tar.gz::https://github.com/Bandwidth/python-bandwidth/archive/v$pkgver.tar.gz"
|
||||||
builddir="$srcdir/python-bandwidth-$pkgver"
|
builddir="$srcdir/python-bandwidth-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 setup.py test
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="31c09c709b4f61741f9eabf5a4ec56d3577996b5b3933c51264442cac1bbf95da5f3e5d9e98b914eb06d8897e273ea0863406fb6bf9c65af0ac1cd71f2f06ac1 bandwidth-sdk-3.1.0.tar.gz"
|
sha512sums="
|
||||||
|
31c09c709b4f61741f9eabf5a4ec56d3577996b5b3933c51264442cac1bbf95da5f3e5d9e98b914eb06d8897e273ea0863406fb6bf9c65af0ac1cd71f2f06ac1 bandwidth-sdk-3.1.0.tar.gz
|
||||||
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user