Skip to content
Snippets Groups Projects
Commit 234d90fa authored by Felix Yan's avatar Felix Yan
Browse files

remove python2 sibling

parent 05fd1bc0
No related branches found
No related tags found
No related merge requests found
# Maintainer: Felix Yan <felixonmars@archlinux.org> # Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
pkgbase=python-cliff pkgname=python-cliff
pkgname=(python-cliff python2-cliff)
pkgver=2.18.0 pkgver=2.18.0
pkgrel=1 pkgrel=2
pkgdesc="Command Line Interface Formulation Framework" pkgdesc="Command Line Interface Formulation Framework"
arch=('any') arch=('any')
url="https://docs.openstack.org/cliff/latest/" url="https://docs.openstack.org/cliff/latest/"
license=('Apache') license=('Apache')
makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' depends=('python-six' 'python-pbr' 'python-cmd2' 'python-prettytable' 'python-pyparsing'
'python-cmd2' 'python2-cmd2' 'python-prettytable' 'python2-prettytable' 'python-stevedore' 'python-yaml')
'python-pyparsing' 'python2-pyparsing' 'python-stevedore' makedepends=('git')
'python2-stevedore' 'python2-unicodecsv' 'python-yaml' 'python2-yaml') checkdepends=('python-testrepository' 'python-mock' 'python-sphinx' 'python-oslosphinx'
checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock' 'python-testscenarios')
'python-sphinx' 'python2-sphinx' 'python-oslosphinx' 'python2-oslosphinx'
'python-testscenarios' 'python2-testscenarios')
options=('!emptydirs') 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') sha512sums=('693d8e9678567c88719a9f2e309951dcebf61277efcdbb250b11e808960ab47d5161db50d2d5d760f3ecc30629db78d986cf77959ffb2084aa2c56f81da7d6a2')
prepare() { export PBR_VERSION=$pkgver
cp -a cliff-$pkgver{,-py2}
export PBR_VERSION=$pkgver
}
build() { build() {
cd "$srcdir"/cliff-$pkgver cd cliff-$pkgver
python setup.py build python setup.py build
cd "$srcdir"/cliff-$pkgver-py2
python2 setup.py build
} }
check() { check() {
cd "$srcdir"/cliff-$pkgver cd cliff-$pkgver
python setup.py testr python setup.py testr
cd "$srcdir"/cliff-$pkgver-py2
PYTHON=python2 python2 setup.py testr
} }
package_python-cliff() { package() {
depends=('python-six' 'python-pbr' 'python-cmd2' 'python-prettytable' 'python-pyparsing' cd cliff-$pkgver
'python-stevedore' 'python-yaml')
cd "$srcdir"/cliff-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 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: # vim:set ts=2 sw=2 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment