[arch-commits] Commit in python-novaclient/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Thu Jul 19 06:51:50 UTC 2018
Date: Thursday, July 19, 2018 @ 06:51:50
Author: eschwartz
Revision: 362354
archrelease: copy trunk to community-staging-any
Added:
python-novaclient/repos/community-staging-any/
python-novaclient/repos/community-staging-any/PKGBUILD
(from rev 362353, python-novaclient/trunk/PKGBUILD)
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Copied: python-novaclient/repos/community-staging-any/PKGBUILD (from rev 362353, python-novaclient/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-19 06:51:50 UTC (rev 362354)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-novaclient
+pkgname=(python-novaclient python2-novaclient)
+pkgver=10.3.0
+pkgrel=2
+pkgdesc="Client library for OpenStack Compute API"
+arch=('any')
+url="https://docs.openstack.org/python-novaclient/latest/"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel'
+ 'python2-babel' 'python-prettytable' 'python2-prettytable' 'python-keystoneauth1'
+ 'python2-keystoneauth1' 'python-requests' 'python2-requests' 'python-iso8601'
+ 'python2-iso8601' 'python-oslo-utils' 'python2-oslo-utils' 'python-oslo-i18n'
+ 'python2-oslo-i18n' 'python-oslo-serialization' 'python2-oslo-serialization')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' 'python2-requests-mock'
+ 'python-testrepository' 'python2-testrepository')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/python-novaclient/archive/$pkgver.tar.gz")
+sha512sums=('8dbd510ad93cd82944548283ff1412ef788d42234ec0d1ac7e8f7261c44b1e184f50c7770f1beb961e2ecdd4ab27f6c80ff46ba1d836d4d5f44e1e7d408a6bb0')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+ sed -i '/simplejson/d' python-novaclient-$pkgver/requirements.txt
+ cp -a python-novaclient-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/python-novaclient-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/python-novaclient-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-novaclient-$pkgver
+ python setup.py testr || warning "Tests failed"
+
+ cd "$srcdir"/python-novaclient-$pkgver-py2
+ PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+package_python-novaclient() {
+ depends=('python-six' 'python-pbr' 'python-babel' 'python-prettytable' 'python-keystoneauth1'
+ 'python-requests' 'python-iso8601' 'python-oslo-utils' 'python-oslo-i18n'
+ 'python-oslo-serialization')
+
+ cd "$srcdir"/python-novaclient-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-novaclient() {
+ depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-prettytable' 'python2-keystoneauth1'
+ 'python2-requests' 'python2-iso8601' 'python2-oslo-utils' 'python2-oslo-i18n'
+ 'python2-oslo-serialization')
+
+ cd "$srcdir"/python-novaclient-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/nova{,2}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list