[arch-commits] Commit in python-kubernetes/repos/community-staging-any (2 files)

Thore Bödecker foxxx0 at archlinux.org
Tue Nov 17 09:42:05 UTC 2020


    Date: Tuesday, November 17, 2020 @ 09:42:05
  Author: foxxx0
Revision: 756080

archrelease: copy trunk to community-staging-any

Added:
  python-kubernetes/repos/community-staging-any/PKGBUILD
    (from rev 756079, python-kubernetes/trunk/PKGBUILD)
Deleted:
  python-kubernetes/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   90 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 50 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-17 09:42:01 UTC (rev 756079)
+++ PKGBUILD	2020-11-17 09:42:05 UTC (rev 756080)
@@ -1,40 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-# Contributor: Ian Beringer <ian at ianberinger.com>
-
-pkgname=python-kubernetes
-_pkgbase=kubernetes
-pkgver=10.0.1
-pkgrel=3
-license=('Apache')
-pkgdesc='Python client for the kubernetes API'
-arch=('any')
-url='https://github.com/kubernetes-client/python'
-depends=('python' 'python-certifi' 'python-six' 'python-dateutil'
-         'python-urllib3' 'python-yaml' 'python-google-auth'
-         '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')
-
-prepare() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  :
-}
-
-build() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  py.test -vvv -s --ignore=kubernetes/e2e_test
-}
-
-package() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-kubernetes/repos/community-staging-any/PKGBUILD (from rev 756079, python-kubernetes/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-17 09:42:05 UTC (rev 756080)
@@ -0,0 +1,50 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Ian Beringer <ian at ianberinger.com>
+
+pkgname=python-kubernetes
+_pkgbase="${pkgname#python-}"
+_kubernetes_base_commit=2da2b981ca806b25487ad92d01a2164815c18517
+pkgver=12.0.1
+pkgrel=2
+license=('Apache')
+pkgdesc='Python client for the kubernetes API'
+arch=('any')
+url='https://github.com/kubernetes-client/python'
+depends=('python' 'python-certifi' 'python-six' 'python-dateutil'
+         'python-urllib3' 'python-yaml' 'python-google-auth'
+         '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' '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}"
+
+  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() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  export PYTHONPATH="${PWD}"
+  py.test -vvv -s --ignore=kubernetes/e2e_test
+}
+
+package() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list