diff options
author | Luis Martinez | 2022-02-06 18:08:02 -0600 |
---|---|---|
committer | Luis Martinez | 2022-02-06 18:08:02 -0600 |
commit | 2cde13a3dcaced277209775dd113a2badb0a1238 (patch) | |
tree | 4b5903a82aac87d3013366956eb4ccd0abe0ba25 /PKGBUILD | |
parent | 5e38d79c96f15884307946655b16fe71f55ef4aa (diff) | |
download | aur-2cde13a3dcaced277209775dd113a2badb0a1238.tar.gz |
update to 0.13.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 25 insertions, 18 deletions
@@ -1,31 +1,38 @@ -# Maintainer: Jeff Henson <jeff@henson.io> -# Old Maintainer: Giacomo Longo <gabibbo97@gmail.com> +# 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.12.1 +pkgver=0.13.1 pkgrel=1 pkgdesc="Python client for the OpenShift API" +arch=('any') url="https://github.com/openshift/openshift-restclient-python" license=('APACHE') -source=("https://github.com/openshift/openshift-restclient-python/archive/v${pkgver}.tar.gz") -sha256sums=('eb63a08489798dd5a83c809baabe6a93ed8f82545e8343b53f3e514f6a19c80c') -arch=('any') -makedepends=('python-setuptools') depends=( - 'python' - 'python-jinja' - 'python-kubernetes' - 'python-string-utils' - 'python-ruamel-yaml' - 'python-six' -) + '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') build() { - cd openshift-restclient-python-${pkgver} - python setup.py build + 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 } package() { - cd openshift-restclient-python-${pkgver} - python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + cd "openshift-restclient-python-$pkgver" + python -m install --optimize=1 --destdir="$pkgdir/" dist/*.whl } |