Date: Wednesday, January 27, 2016 @ 03:00:10 Author: fyan Revision: 158995
archrelease: copy trunk to community-any Added: python-oslo-config/repos/community-any/PKGBUILD (from rev 158994, python-oslo-config/trunk/PKGBUILD) Deleted: python-oslo-config/repos/community-any/PKGBUILD ----------+ PKGBUILD | 96 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-01-27 01:59:51 UTC (rev 158994) +++ PKGBUILD 2016-01-27 02:00:10 UTC (rev 158995) @@ -1,48 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@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.3.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') -options=('!emptydirs') -source=("https://pypi.python.org/packages/source/o/$_pypiname/$_pypiname-$pkgver.tar.gz") -md5sums=('e54771cb1b7690fcd30ad41eebf43c26') - -prepare(){ - cp -a $_pypiname-$pkgver{,-py2} - find $_pypiname-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + - sed -i '/argparse/d' "$_pypiname-$pkgver"{,-py2}/requirements.txt -} - -build(){ - cd "$srcdir/$_pypiname-$pkgver" - python setup.py build - - cd "$srcdir/$_pypiname-$pkgver-py2" - python2 setup.py build -} - -package_python-oslo-config() { - depends=('python') - - cd "$srcdir/$_pypiname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 -} - -package_python2-oslo-config() { - depends=('python2') - - cd "$srcdir/$_pypiname-$pkgver-py2" - python2 setup.py install --root="$pkgdir/" --optimize=1 - mv $pkgdir/usr/bin/oslo-config-generator $pkgdir/usr/bin/oslo-config-generator2 -} - -# vim:set ts=2 sw=2 et: Copied: python-oslo-config/repos/community-any/PKGBUILD (from rev 158994, python-oslo-config/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-01-27 02:00:10 UTC (rev 158995) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@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.4.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') +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 +} + +build(){ + cd "$srcdir/$_pypiname" + python setup.py build + + cd "$srcdir/$_pypiname-py2" + python2 setup.py build +} + +package_python-oslo-config() { + depends=('python') + + cd "$srcdir/$_pypiname" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-oslo-config() { + depends=('python2') + + cd "$srcdir/$_pypiname-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 + mv $pkgdir/usr/bin/oslo-config-generator $pkgdir/usr/bin/oslo-config-generator2 +} + +# vim:set ts=2 sw=2 et: