mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-10 01:54:18 +02:00
testing/py3-bandwidth-sdk: build with gpep517
This commit is contained in:
parent
dde9cb201e
commit
7d03daa271
1 changed files with 14 additions and 6 deletions
|
@ -1,27 +1,35 @@
|
|||
# Maintainer:
|
||||
pkgname=py3-bandwidth-sdk
|
||||
pkgver=3.1.0
|
||||
pkgrel=7
|
||||
pkgrel=8
|
||||
pkgdesc="python helpers for using bandwidth.com API"
|
||||
url="https://pypi.org/project/bandwidth-sdk/"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-requests py3-dateutil py3-lxml py3-six"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="bandwidth-sdk-$pkgver.tar.gz::https://github.com/Bandwidth/python-bandwidth/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/python-bandwidth-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
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() {
|
||||
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…
Add table
Add a link
Reference in a new issue