Compare commits
15 commits
37f08502e9
...
9ba46ce88f
Author | SHA1 | Date | |
---|---|---|---|
9ba46ce88f | |||
505c7a9615 | |||
|
ac67559152 | ||
|
2cde13a3dc | ||
|
5e38d79c96 | ||
|
9878729aab | ||
|
7a03be32bb | ||
|
413c3d7590 | ||
|
b5be3a3a9d | ||
|
32d018f896 | ||
|
ff808d1557 | ||
|
626777ee16 | ||
|
aa2139a9c6 | ||
|
369b5d267f | ||
|
1a80a39cc5 |
5 changed files with 66 additions and 43 deletions
23
python-openshift/.SRCINFO
Normal file
23
python-openshift/.SRCINFO
Normal 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
4
python-openshift/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
*
|
||||||
|
!.gitignore
|
||||||
|
!.SRCINFO
|
||||||
|
!PKGBUILD
|
39
python-openshift/PKGBUILD
Normal file
39
python-openshift/PKGBUILD
Normal 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
|
||||||
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
pkgbase = scaphandre
|
|
||||||
pkgdesc = Electrical power consumption metrology agent
|
|
||||||
pkgver = 0.4.1
|
|
||||||
pkgrel = 1
|
|
||||||
url = https://github.com/hubblo-org/scaphandre/
|
|
||||||
arch = x86_64
|
|
||||||
license = Apache
|
|
||||||
makedepends = rust
|
|
||||||
depends = gcc-libs
|
|
||||||
depends = zlib
|
|
||||||
depends = openssl
|
|
||||||
source = scaphandre-0.4.1.tar.gz::https://github.com/hubblo-org/scaphandre/archive/v0.4.1.tar.gz
|
|
||||||
sha512sums = c730842981b74d5f2edc7f44fe90047402181e7e7ab89828eb7a4775fb754301bd32078a11218a67c24b907f1ffe4beabd60d2687f218e4815bd9cdd7eab098c
|
|
||||||
|
|
||||||
pkgname = scaphandre
|
|
|
@ -1,28 +0,0 @@
|
||||||
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
||||||
|
|
||||||
pkgname=scaphandre
|
|
||||||
pkgver=0.4.1
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Electrical power consumption metrology agent"
|
|
||||||
arch=('x86_64')
|
|
||||||
url="https://github.com/hubblo-org/scaphandre/"
|
|
||||||
license=(Apache)
|
|
||||||
depends=('gcc-libs' 'zlib' 'openssl')
|
|
||||||
makedepends=('rust')
|
|
||||||
source=($pkgname-$pkgver.tar.gz::https://github.com/hubblo-org/scaphandre/archive/v${pkgver}.tar.gz)
|
|
||||||
sha512sums=('c730842981b74d5f2edc7f44fe90047402181e7e7ab89828eb7a4775fb754301bd32078a11218a67c24b907f1ffe4beabd60d2687f218e4815bd9cdd7eab098c')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
|
||||||
|
|
||||||
cargo build --release
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
|
||||||
|
|
||||||
install -Dm755 target/release/scaphandre "$pkgdir"/usr/bin/scaphandre
|
|
||||||
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
|
Loading…
Reference in a new issue