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

Felix Yan felixonmars at archlinux.org
Mon Dec 26 10:24:32 UTC 2016


    Date: Monday, December 26, 2016 @ 10:24:31
  Author: felixonmars
Revision: 202727

archrelease: copy trunk to community-staging-any

Added:
  python-osc-lib/repos/community-staging-any/
  python-osc-lib/repos/community-staging-any/PKGBUILD
    (from rev 202726, python-osc-lib/trunk/PKGBUILD)

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

Copied: python-osc-lib/repos/community-staging-any/PKGBUILD (from rev 202726, python-osc-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-26 10:24:31 UTC (rev 202727)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-osc-lib
+pkgname=(python-osc-lib python2-osc-lib)
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="OpenStackClient Library"
+arch=('any')
+url="http://docs.openstack.org/developer/osc-lib"
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-babel' 'python2-babel' 'python-cliff' 'python2-cliff'
+             'python-keystoneauth1' 'python2-keystoneauth1' 'python-os-client-config'
+             'python2-os-client-config' 'python-oslo-i18n' 'python2-oslo-i18n' 'python-oslo-utils'
+             'python2-oslo-utils' 'python-simplejson' 'python2-simplejson' 'python-stevedore'
+             'python2-stevedore')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock'
+              'python2-requests-mock')
+source=("git+https://git.openstack.org/openstack/osc-lib#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a osc-lib{,-py2}
+}
+
+build() {
+  cd "$srcdir"/osc-lib
+  python setup.py build
+
+  cd "$srcdir"/osc-lib-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/osc-lib
+  python setup.py testr || warning "Tests failed"
+
+  cd "$srcdir"/osc-lib-py2
+  PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+package_python-osc-lib() {
+  depends=('python-six' 'python-pbr' 'python-babel' 'python-cliff' 'python-keystoneauth1'
+           'python-os-client-config' 'python-oslo-i18n' 'python-oslo-utils' 'python-stevedore'
+           'python-simplejson')
+
+  cd "$srcdir"/osc-lib
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-osc-lib() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-cliff' 'python2-keystoneauth1'
+           'python2-os-client-config' 'python2-oslo-i18n' 'python2-oslo-utils' 'python2-stevedore'
+           'python2-simplejson')
+
+  cd "$srcdir"/osc-lib-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list