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

Eli Schwartz eschwartz at archlinux.org
Sun Jul 15 15:53:55 UTC 2018


    Date: Sunday, July 15, 2018 @ 15:53:54
  Author: eschwartz
Revision: 359549

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cliff/repos/community-staging-any/PKGBUILD (from rev 359548, python-cliff/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-15 15:53:54 UTC (rev 359549)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-cliff
+pkgname=(python-cliff python2-cliff)
+pkgver=2.13.0
+pkgrel=2
+pkgdesc="Command Line Interface Formulation Framework"
+arch=('any')
+url="https://docs.openstack.org/cliff/latest/"
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-cmd2' 'python2-cmd2' 'python-prettytable' 'python2-prettytable'
+             'python-pyparsing' 'python2-pyparsing' 'python-stevedore'
+             'python2-stevedore' 'python2-unicodecsv' 'python-yaml' 'python2-yaml')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock'
+              'python-sphinx' 'python2-sphinx' 'python-oslosphinx' 'python2-oslosphinx'
+              'python-testscenarios' 'python2-testscenarios')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/cliff/archive/$pkgver.tar.gz")
+sha512sums=('af0f34900897133ab7bb00142d95af20fcd124a3627f5ffc0ed82c34d86bf16afcfacfcafa600d7eba2580689b51deac8b6496e15990c2a33df95f7dcecf04f1')
+
+prepare() {
+  cp -a cliff-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/cliff-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/cliff-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/cliff-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/cliff-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-cliff() {
+  depends=('python-six' 'python-pbr' 'python-cmd2' 'python-prettytable' 'python-pyparsing'
+           'python-stevedore' 'python-yaml')
+
+  cd "$srcdir"/cliff-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-cliff() {
+  depends=('python2-six' 'python2-pbr' 'python2-cmd2' 'python2-prettytable' 'python2-pyparsing'
+           'python2-stevedore' 'python2-unicodecsv' 'python2-yaml')
+
+  cd "$srcdir"/cliff-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list