[arch-commits] Commit in python-kubernetes/trunk (PKGBUILD)
Thore Bödecker
foxxx0 at archlinux.org
Tue Nov 17 09:41:01 UTC 2020
Date: Tuesday, November 17, 2020 @ 09:41:01
Author: foxxx0
Revision: 756077
upgpkg: python-kubernetes 12.0.1-1: update to upstream release 12.0.1
Modified:
python-kubernetes/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-17 09:07:41 UTC (rev 756076)
+++ PKGBUILD 2020-11-17 09:41:01 UTC (rev 756077)
@@ -2,9 +2,10 @@
# Contributor: Ian Beringer <ian at ianberinger.com>
pkgname=python-kubernetes
-_pkgbase=kubernetes
-pkgver=10.0.1
-pkgrel=3
+_pkgbase="${pkgname#python-}"
+_kubernetes_base_commit=2da2b981ca806b25487ad92d01a2164815c18517
+pkgver=12.0.1
+pkgrel=1
license=('Apache')
pkgdesc='Python client for the kubernetes API'
arch=('any')
@@ -14,13 +15,21 @@
'python-websocket-client' 'python-requests' 'python-requests-oauthlib'
'python-adal')
makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-pluggy' 'python-py' 'python-mock' 'python-recommonmark' 'python-isort')
-source=("https://files.pythonhosted.org/packages/source/${_pkgbase::1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
-sha256sums=('3770a496663396ad1def665eeadb947b3f45217a08b64b10c01a57e981ac8592')
+checkdepends=('python-pytest' 'python-pluggy' 'python-py' 'python-mock' 'python-recommonmark' 'python-isort' 'python-nose')
+source=("${_pkgbase}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+ "${_pkgbase}-base-${_kubernetes_base_commit}.tar.gz::https://github.com/kubernetes-client/python-base/archive/${_kubernetes_base_commit}.tar.gz")
+sha256sums=('6d0770a25db9e4e6b4188cf7485c32bef3f0317f729cca19c9af0b6f7d275dc8'
+ 'ffc9f2384399c8b97ed7114f64d2efde88e385a2c31a92e083651f4fd1b9b860')
prepare() {
- cd "${srcdir}/${_pkgbase}-${pkgver}"
- :
+ cd "${srcdir}"
+
+ mv -v "python-${pkgver}" "${_pkgbase}-${pkgver}"
+ mv -v "python-base-${_kubernetes_base_commit}" "${_pkgbase}-base-${_kubernetes_base_commit}"
+
+ # their "base" has been split out to a git submodule, so include it via symlink
+ rm -vrf "${_pkgbase}-${pkgver}/kubernetes/base"
+ ln -vsf "${srcdir}/${_pkgbase}-base-${_kubernetes_base_commit}" "${_pkgbase}-${pkgver}/kubernetes/base"
}
build() {
@@ -30,6 +39,7 @@
check() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
+ export PYTHONPATH="${PWD}"
py.test -vvv -s --ignore=kubernetes/e2e_test
}
More information about the arch-commits
mailing list