[arch-commits] Commit in python-cliff/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 13 14:42:09 UTC 2020
Date: Thursday, February 13, 2020 @ 14:42:08
Author: felixonmars
Revision: 570496
upgpkg: python-cliff 2.18.0-2: remove python2 sibling
Modified:
python-cliff/trunk/PKGBUILD
----------+
PKGBUILD | 50 +++++++++++++-------------------------------------
1 file changed, 13 insertions(+), 37 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-13 14:41:49 UTC (rev 570495)
+++ PKGBUILD 2020-02-13 14:42:08 UTC (rev 570496)
@@ -1,61 +1,37 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-pkgbase=python-cliff
-pkgname=(python-cliff python2-cliff)
+pkgname=python-cliff
pkgver=2.18.0
-pkgrel=1
+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')
+depends=('python-six' 'python-pbr' 'python-cmd2' 'python-prettytable' 'python-pyparsing'
+ 'python-stevedore' 'python-yaml')
+makedepends=('git')
+checkdepends=('python-testrepository' 'python-mock' 'python-sphinx' 'python-oslosphinx'
+ 'python-testscenarios')
options=('!emptydirs')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/cliff/archive/$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/cliff/archive/$pkgver.tar.gz")
sha512sums=('693d8e9678567c88719a9f2e309951dcebf61277efcdbb250b11e808960ab47d5161db50d2d5d760f3ecc30629db78d986cf77959ffb2084aa2c56f81da7d6a2')
-prepare() {
- cp -a cliff-$pkgver{,-py2}
+export PBR_VERSION=$pkgver
- export PBR_VERSION=$pkgver
-}
-
build() {
- cd "$srcdir"/cliff-$pkgver
+ cd cliff-$pkgver
python setup.py build
-
- cd "$srcdir"/cliff-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/cliff-$pkgver
+ cd 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
+package() {
+ cd 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