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

Evangelos Foutras foutrelis at archlinux.org
Mon Jul 23 16:15:40 UTC 2018


    Date: Monday, July 23, 2018 @ 16:15:39
  Author: foutrelis
Revision: 363134

archrelease: copy trunk to community-staging-any

Added:
  python-swiftclient/repos/community-staging-any/
  python-swiftclient/repos/community-staging-any/PKGBUILD
    (from rev 363132, python-swiftclient/trunk/PKGBUILD)

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

Copied: python-swiftclient/repos/community-staging-any/PKGBUILD (from rev 363132, python-swiftclient/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 16:15:39 UTC (rev 363134)
@@ -0,0 +1,59 @@
+# $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.5.0
+pkgrel=2
+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=('15802a452f871fb24e8c24a50e0109cd46e162cad9c92251f2fb739936ed8de9aab91f91ab1ddc6eac14b2d2b9d24742d479200be5f1a5391cff176354e5b8d1')
+
+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:



More information about the arch-commits mailing list