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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:42:32 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:42:32
  Author: felixonmars
Revision: 1063268

archrelease: copy trunk to community-staging-any

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

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

Copied: python-kubernetes/repos/community-staging-any/PKGBUILD (from rev 1063267, python-kubernetes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:42:32 UTC (rev 1063268)
@@ -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=b4d3aad42dc23e7a6c0e5c032691f8dc385a786c
+pkgver=18.20.0
+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=('5320cec65d9dab7baa28fe542847888d604fb02e511f0464d0e93a948ac071c8'
+            'c76a4f51e662132da2d29cafafe6aeab1778d7e546dc7c918ec6f3e1d4943871')
+
+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