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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 04:08:39 UTC 2019


    Date: Saturday, October 26, 2019 @ 04:08:38
  Author: foutrelis
Revision: 519911

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cliff/repos/community-staging-any/PKGBUILD (from rev 519910, python-cliff/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 04:08:38 UTC (rev 519911)
@@ -0,0 +1,61 @@
+# 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.16.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=('4d789c683bd23a624beb0cbcb2cae2a31858b7da3625b5c15d274a25195d27f41ea0dc949e00dc381457d6a31ba5221160c23e347767edfd0babb4bd41c373f6')
+
+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