use python-installer for packaging

This commit is contained in:
Luis Martinez 2022-03-01 13:33:49 -06:00
parent 2cde13a3dc
commit ac67559152
No known key found for this signature in database
GPG key ID: B48AD8FC0F860CE1
2 changed files with 7 additions and 6 deletions

View file

@ -1,14 +1,14 @@
pkgbase = python-openshift pkgbase = python-openshift
pkgdesc = Python client for the OpenShift API pkgdesc = Python client for the OpenShift API
pkgver = 0.13.1 pkgver = 0.13.1
pkgrel = 1 pkgrel = 2
url = https://github.com/openshift/openshift-restclient-python url = https://github.com/openshift/openshift-restclient-python
arch = any arch = any
license = APACHE license = APACHE
checkdepends = python-pytest checkdepends = python-pytest
makedepends = python-setuptools makedepends = python-setuptools
makedepends = python-build makedepends = python-build
makedepends = python-install makedepends = python-installer
makedepends = python-wheel makedepends = python-wheel
depends = python-jinja depends = python-jinja
depends = python-kubernetes depends = python-kubernetes

View file

@ -4,7 +4,7 @@
pkgname=python-openshift pkgname=python-openshift
pkgver=0.13.1 pkgver=0.13.1
pkgrel=1 pkgrel=2
pkgdesc="Python client for the OpenShift API" pkgdesc="Python client for the OpenShift API"
arch=('any') arch=('any')
url="https://github.com/openshift/openshift-restclient-python" url="https://github.com/openshift/openshift-restclient-python"
@ -17,14 +17,14 @@ depends=(
'python-six' 'python-six'
'python-requests' 'python-requests'
'python-requests-oauthlib') 'python-requests-oauthlib')
makedepends=('python-setuptools' 'python-build' 'python-install' 'python-wheel') makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest') checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('6a061cc12247e96147e40d8463c133cb01b915907af10df08d937d27e6a1f283') sha256sums=('6a061cc12247e96147e40d8463c133cb01b915907af10df08d937d27e6a1f283')
build() { build() {
cd "openshift-restclient-python-$pkgver" cd "openshift-restclient-python-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation python -m build --wheel --no-isolation
} }
check() { check() {
@ -33,6 +33,7 @@ check() {
} }
package() { package() {
export PYTHONHASHSEED=0
cd "openshift-restclient-python-$pkgver" cd "openshift-restclient-python-$pkgver"
python -m install --optimize=1 --destdir="$pkgdir/" dist/*.whl python -m installer --destdir="$pkgdir/" dist/*.whl
} }