Add 'python-openshift/' from commit 'ac67559152a359f6bbaf41b8b6529cfaaff236ce'

git-subtree-dir: python-openshift
git-subtree-mainline: 37f08502e9
git-subtree-split: ac67559152
This commit is contained in:
Cedric Girard 2023-05-24 16:27:14 +02:00
commit 505c7a9615
3 changed files with 66 additions and 0 deletions

23
python-openshift/.SRCINFO Normal file
View File

@ -0,0 +1,23 @@
pkgbase = python-openshift
pkgdesc = Python client for the OpenShift API
pkgver = 0.13.1
pkgrel = 2
url = https://github.com/openshift/openshift-restclient-python
arch = any
license = APACHE
checkdepends = python-pytest
makedepends = python-setuptools
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
depends = python-jinja
depends = python-kubernetes
depends = python-string-utils
depends = python-ruamel-yaml
depends = python-six
depends = python-requests
depends = python-requests-oauthlib
source = python-openshift-0.13.1.tar.gz::https://github.com/openshift/openshift-restclient-python/archive/v0.13.1.tar.gz
sha256sums = 6a061cc12247e96147e40d8463c133cb01b915907af10df08d937d27e6a1f283
pkgname = python-openshift

4
python-openshift/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!.gitignore
!.SRCINFO
!PKGBUILD

39
python-openshift/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Jeff Henson <jeff@henson.io>
# Contributor: Giacomo Longo <gabibbo97@gmail.com>
pkgname=python-openshift
pkgver=0.13.1
pkgrel=2
pkgdesc="Python client for the OpenShift API"
arch=('any')
url="https://github.com/openshift/openshift-restclient-python"
license=('APACHE')
depends=(
'python-jinja'
'python-kubernetes'
'python-string-utils'
'python-ruamel-yaml'
'python-six'
'python-requests'
'python-requests-oauthlib')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('6a061cc12247e96147e40d8463c133cb01b915907af10df08d937d27e6a1f283')
build() {
cd "openshift-restclient-python-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "openshift-restclient-python-$pkgver"
PYTHONPATH=./ pytest -x -c /dev/null test/unit
}
package() {
export PYTHONHASHSEED=0
cd "openshift-restclient-python-$pkgver"
python -m installer --destdir="$pkgdir/" dist/*.whl
}