1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/py3-kubernetes/APKBUILD
2023-02-24 19:38:57 +00:00

50 lines
1.3 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-kubernetes
_pkgname=kubernetes
pkgver=26.1.0
pkgrel=0
pkgdesc="Official Python client library for kubernetes"
url="https://github.com/kubernetes-client/python"
arch="noarch"
license="Apache-2.0"
depends="
py3-certifi
py3-dateutil
py3-google-auth
py3-requests
py3-requests-oauthlib
py3-six
py3-urllib3
py3-websocket-client
py3-yaml
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="pytest py3-mock"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/k/kubernetes/kubernetes-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
# deselected tests have missing modules
testenv/bin/python3 -m \
pytest --ignore=kubernetes/dynamic/test_client.py \
--ignore=kubernetes/dynamic/test_discovery.py \
--ignore=kubernetes/e2e_test \
kubernetes
}
package() {
python3 -m installer -d "$pkgdir" dist/*.whl
}
sha512sums="
4a03e245ffbec78b86790f2c9eb4d82c380f399b5bafd518c841be792e9aa6e91a593bc1202df0a716eccc9655c890dac169a04770ba0cbb6b256a252d26f94f py3-kubernetes-26.1.0.tar.gz
"