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

Felix Yan felixonmars at archlinux.org
Fri Aug 17 05:44:17 UTC 2018


    Date: Friday, August 17, 2018 @ 05:44:17
  Author: felixonmars
Revision: 372042

archrelease: copy trunk to community-testing-any

Added:
  python-cinderclient/repos/community-testing-any/
  python-cinderclient/repos/community-testing-any/PKGBUILD
    (from rev 372041, python-cinderclient/trunk/PKGBUILD)

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

Copied: python-cinderclient/repos/community-testing-any/PKGBUILD (from rev 372041, python-cinderclient/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-08-17 05:44:17 UTC (rev 372042)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-cinderclient
+pkgname=(python-cinderclient python2-cinderclient)
+pkgver=4.0.1
+pkgrel=1
+pkgdesc="OpenStack Block Storage API Client Library"
+arch=('any')
+url="http://docs.openstack.org/developer/python-cinderclient"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel'
+             'python2-babel' 'python-prettytable' 'python2-prettytable' 'python-keystoneclient'
+             'python2-keystoneclient' 'python-requests' 'python2-requests' 'python-oslo-utils'
+             'python2-oslo-utils')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' 'python2-requests-mock'
+              'python-ddt' 'python2-ddt' 'python-stestr' 'python2-stestr')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/python-cinderclient/archive/$pkgver.tar.gz")
+sha512sums=('586c4edb6c99de8c59571e6f9e66a2e8b0dfa76c65781e09372f644626d6c3ad92902cd280e7ae6aafe2fac2eeeb8b323dba500324cdad30f3d99858d1eef937')
+
+prepare() {
+  sed -i '/simplejson/d' python-cinderclient-$pkgver/requirements.txt
+  cp -a python-cinderclient-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/python-cinderclient-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/python-cinderclient-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-cinderclient-$pkgver
+  stestr run || warning "Tests failed"
+
+  cd "$srcdir"/python-cinderclient-$pkgver-py2
+  PYTHON=python2 stestr2 run
+}
+
+package_python-cinderclient() {
+  depends=('python-six' 'python-pbr' 'python-babel' 'python-prettytable' 'python-keystoneclient'
+           'python-requests' 'python-oslo-utils')
+
+  cd "$srcdir"/python-cinderclient-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-cinderclient() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-prettytable'
+           'python2-keystoneclient' 'python2-requests' 'python2-oslo-utils')
+
+  cd "$srcdir"/python-cinderclient-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/cinder{,2}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list