[arch-commits] Commit in python-oslo-config/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Feb 23 02:56:38 UTC 2016
Date: Tuesday, February 23, 2016 @ 03:56:38
Author: fyan
Revision: 163164
upgpkg: python-oslo-config 3.8.0-1
Modified:
python-oslo-config/trunk/PKGBUILD
----------+
PKGBUILD | 41 ++++++++++++++++++++++++++---------------
1 file changed, 26 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-23 02:51:34 UTC (rev 163163)
+++ PKGBUILD 2016-02-23 02:56:38 UTC (rev 163164)
@@ -1,46 +1,57 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org.
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
pkgbase=python-oslo-config
pkgname=(python-oslo-config python2-oslo-config)
-_pypiname=oslo.config
-pkgver=3.7.0
+pkgver=3.8.0
pkgrel=1
pkgdesc="parsing command line arguments and .ini style configuration files"
arch=('any')
url="https://pypi.python.org/pypi/oslo.config/$pkgver"
license=('GPL')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-netaddr' 'python2-netaddr'
+ 'python-stevedore' 'python2-stevedore' 'python-debtcollector' 'python2-debtcollector')
+checkdepends=('python-mock' 'python2-mock' 'python-fixtures' 'python2-fixtures')
options=('!emptydirs')
source=("git+https://git.openstack.org/openstack/oslo.config#tag=$pkgver")
md5sums=('SKIP')
-prepare(){
- cp -a $_pypiname{,-py2}
- find $_pypiname-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
- sed -i '/argparse/d' "$_pypiname"{,-py2}/requirements.txt
+prepare() {
+ cp -a oslo.config{,-py2}
+ find oslo.config-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+ sed -i '/argparse/d' "oslo.config"{,-py2}/requirements.txt
}
-build(){
- cd "$srcdir/$_pypiname"
+build() {
+ cd "$srcdir"/oslo.config
python setup.py build
- cd "$srcdir/$_pypiname-py2"
+ cd "$srcdir"/oslo.config-py2
python2 setup.py build
}
+check() {
+ # Disabled for now, as it brings in too many dependencies
+
+ cd "$srcdir"/oslo.config
+ # py.test
+
+ cd "$srcdir"/oslo.config-py2
+ # py.test2
+}
+
package_python-oslo-config() {
- depends=('python')
+ depends=('python-six' 'python-netaddr' 'python-stevedore' 'python-debtcollector')
- cd "$srcdir/$_pypiname"
+ cd "$srcdir"/oslo.config
python setup.py install --root="$pkgdir/" --optimize=1
}
package_python2-oslo-config() {
- depends=('python2')
+ depends=('python2-six' 'python2-netaddr' 'python2-stevedore' 'python2-debtcollector')
- cd "$srcdir/$_pypiname-py2"
+ cd "$srcdir"/oslo.config-py2
python2 setup.py install --root="$pkgdir/" --optimize=1
mv $pkgdir/usr/bin/oslo-config-generator $pkgdir/usr/bin/oslo-config-generator2
}
More information about the arch-commits
mailing list