2022-02-07 01:08:02 +01:00
|
|
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
|
|
|
|
# Contributor: Jeff Henson <jeff@henson.io>
|
|
|
|
# Contributor: Giacomo Longo <gabibbo97@gmail.com>
|
2020-03-13 03:01:53 +01:00
|
|
|
|
2018-08-26 00:16:01 +02:00
|
|
|
pkgname=python-openshift
|
2022-02-07 01:08:02 +01:00
|
|
|
pkgver=0.13.1
|
2021-02-26 00:44:55 +01:00
|
|
|
pkgrel=1
|
2018-08-26 00:16:01 +02:00
|
|
|
pkgdesc="Python client for the OpenShift API"
|
2022-02-07 01:08:02 +01:00
|
|
|
arch=('any')
|
2018-08-26 00:16:01 +02:00
|
|
|
url="https://github.com/openshift/openshift-restclient-python"
|
|
|
|
license=('APACHE')
|
|
|
|
depends=(
|
2022-02-07 01:08:02 +01:00
|
|
|
'python-jinja'
|
|
|
|
'python-kubernetes'
|
|
|
|
'python-string-utils'
|
|
|
|
'python-ruamel-yaml'
|
|
|
|
'python-six'
|
|
|
|
'python-requests'
|
|
|
|
'python-requests-oauthlib')
|
|
|
|
makedepends=('python-setuptools' 'python-build' 'python-install' 'python-wheel')
|
|
|
|
checkdepends=('python-pytest')
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
|
|
|
sha256sums=('6a061cc12247e96147e40d8463c133cb01b915907af10df08d937d27e6a1f283')
|
2018-08-26 00:16:01 +02:00
|
|
|
|
|
|
|
build() {
|
2022-02-07 01:08:02 +01:00
|
|
|
cd "openshift-restclient-python-$pkgver"
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "openshift-restclient-python-$pkgver"
|
|
|
|
PYTHONPATH=./ pytest -x -c /dev/null test/unit
|
2018-08-26 00:16:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-02-07 01:08:02 +01:00
|
|
|
cd "openshift-restclient-python-$pkgver"
|
|
|
|
python -m install --optimize=1 --destdir="$pkgdir/" dist/*.whl
|
2018-08-26 00:16:01 +02:00
|
|
|
}
|