[arch-commits] Commit in python-swiftclient/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Mar 11 04:18:52 UTC 2019
Date: Monday, March 11, 2019 @ 04:18:52
Author: felixonmars
Revision: 439616
archrelease: copy trunk to community-any
Added:
python-swiftclient/repos/community-any/PKGBUILD
(from rev 439615, python-swiftclient/trunk/PKGBUILD)
Deleted:
python-swiftclient/repos/community-any/PKGBUILD
----------+
PKGBUILD | 117 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-11 04:18:38 UTC (rev 439615)
+++ PKGBUILD 2019-03-11 04:18:52 UTC (rev 439616)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-
-pkgbase=python-swiftclient
-pkgname=(python-swiftclient python2-swiftclient)
-pkgver=3.6.0
-pkgrel=1
-pkgdesc="An SDK for building applications to work with OpenStack"
-arch=('any')
-url="http://docs.openstack.org/python-swiftclient"
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python2-futures'
- 'python-requests' 'python2-requests')
-checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock'
- 'python-keystoneauth1' 'python2-keystoneauth1')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/python-swiftclient/archive/$pkgver.tar.gz")
-sha512sums=('f2636bc1cef40e49ebb4b393e02b2578b323a511bf810120aa4b5da41582b1a98d275782e29794d431e2bd8681a813bd7fd60d38db16935dc7ead885043b44c0')
-
-prepare() {
- cp -a python-swiftclient-$pkgver{,-py2}
-
- export PBR_VERSION=$pkgver
-}
-
-build() {
- cd "$srcdir"/python-swiftclient-$pkgver
- python setup.py build
-
- cd "$srcdir"/python-swiftclient-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/python-swiftclient-$pkgver
- python setup.py testr
-
- cd "$srcdir"/python-swiftclient-$pkgver-py2
- PYTHON=python2 python2 setup.py testr
-}
-
-package_python-swiftclient() {
- depends=('python-six' 'python-requests')
-
- cd "$srcdir"/python-swiftclient-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-swiftclient() {
- depends=('python2-six' 'python2-futures' 'python2-requests')
-
- cd "$srcdir"/python-swiftclient-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- mv "$pkgdir"/usr/bin/swift{,2}
- mv "$pkgdir"/usr/share/man/man1/swift{,2}.1
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-swiftclient/repos/community-any/PKGBUILD (from rev 439615, python-swiftclient/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-03-11 04:18:52 UTC (rev 439616)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-swiftclient
+pkgname=(python-swiftclient python2-swiftclient)
+pkgver=3.7.0
+pkgrel=1
+pkgdesc="An SDK for building applications to work with OpenStack"
+arch=('any')
+url="http://docs.openstack.org/python-swiftclient"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python2-futures'
+ 'python-requests' 'python2-requests')
+checkdepends=('python-stestr' 'python2-stestr' 'python-mock' 'python2-mock'
+ 'python-keystoneauth1' 'python2-keystoneauth1')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/python-swiftclient/archive/$pkgver.tar.gz")
+sha512sums=('5b9e89aaaf47ecaff857aff67b7b5726bbbacbdaccc0a5d679255f6b6fc614e05a2412cc25938eb6d643700e4b981fbfdc74efcfeb114061de54cc777e78d8fd')
+
+prepare() {
+ cp -a python-swiftclient-$pkgver{,-py2}
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/python-swiftclient-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/python-swiftclient-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-swiftclient-$pkgver
+ stestr run
+
+ cd "$srcdir"/python-swiftclient-$pkgver-py2
+ PYTHON=python2 stestr2 run
+}
+
+package_python-swiftclient() {
+ depends=('python-six' 'python-requests')
+
+ cd "$srcdir"/python-swiftclient-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-swiftclient() {
+ depends=('python2-six' 'python2-futures' 'python2-requests')
+
+ cd "$srcdir"/python-swiftclient-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/swift{,2}
+ mv "$pkgdir"/usr/share/man/man1/swift{,2}.1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list