summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65023d8c1ba145c6e00f9ae259ba49b21deed7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
}