mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-kubernetes
|
|
_pkgname=kubernetes
|
|
pkgver=30.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"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
26c07633529ebaf514900cca9e32b85cd87e59aa7eb458c75c281645a5564dca10baf5d84be3dd12192f119d37c6c72a2dd8563c497bc7ab549602c0cff08bda py3-kubernetes-30.1.0.tar.gz
|
|
"
|