[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Fri Feb 26 10:07:15 UTC 2016


    Date: Friday, February 26, 2016 @ 11:07:15
  Author: fyan
Revision: 163496

addpkg: python-glanceclient 1.2.0-1

Added:
  python-glanceclient/
  python-glanceclient/repos/
  python-glanceclient/trunk/
  python-glanceclient/trunk/PKGBUILD

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

Added: python-glanceclient/trunk/PKGBUILD
===================================================================
--- python-glanceclient/trunk/PKGBUILD	                        (rev 0)
+++ python-glanceclient/trunk/PKGBUILD	2016-02-26 10:07:15 UTC (rev 163496)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-glanceclient
+pkgname=(python-glanceclient python2-glanceclient)
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="OpenStack Image API Client Library"
+arch=('any')
+url="http://docs.openstack.org/developer/python-glanceclient"
+license=('Apache')
+makedepends=('git' '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-warlock' 'python2-warlock' 'python-oslo-utils'
+             'python2-oslo-utils' 'python-oslo-i18n' 'python2-oslo-i18n')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock'
+              'python2-requests-mock')
+options=('!emptydirs')
+source=("git+https://git.openstack.org/openstack/python-glanceclient#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a python-glanceclient{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-glanceclient
+  python setup.py build
+
+  cd "$srcdir"/python-glanceclient-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-glanceclient
+  # One random test failure in glanceclient.tests.unit.test_shell.ShellCacheSchemaTest
+  python setup.py testr || warning "Tests failed"
+
+  cd "$srcdir"/python-glanceclient-py2
+  # Three test failures in glanceclient.tests.unit.test_ssl.TestHTTPSVerifyCert
+  PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+package_python-glanceclient() {
+  depends=('python-six' 'python-pbr' 'python-babel' 'python-prettytable' 'python-keystoneclient'
+           'python-requests' 'python-warlock' 'python-oslo-utils' 'python-oslo-i18n')
+
+  cd "$srcdir"/python-glanceclient
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-glanceclient() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-prettytable' 'python2-keystoneclient'
+           'python2-requests' 'python2-warlock' 'python2-oslo-utils' 'python2-oslo-i18n')
+
+  cd "$srcdir"/python-glanceclient-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+
+  mv "$pkgdir"/usr/bin/glance{,2}
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-glanceclient/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list