Date: Tuesday, November 6, 2018 @ 14:05:39 Author: felixonmars Revision: 401696
archrelease: copy trunk to community-any Added: python-oslo-config/repos/community-any/PKGBUILD (from rev 401695, python-oslo-config/trunk/PKGBUILD) Deleted: python-oslo-config/repos/community-any/PKGBUILD ----------+ PKGBUILD | 132 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 66 insertions(+), 66 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-11-06 14:05:16 UTC (rev 401695) +++ PKGBUILD 2018-11-06 14:05:39 UTC (rev 401696) @@ -1,66 +0,0 @@ -# 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) -pkgver=6.6.2 -pkgrel=1 -pkgdesc="parsing command line arguments and .ini style configuration files" -arch=('any') -url="https://pypi.python.org/pypi/oslo.config/$pkgver" -license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools' 'python-netaddr' 'python2-netaddr' - 'python-stevedore' 'python2-stevedore' 'python-debtcollector' 'python2-debtcollector' - 'python-oslo-i18n' 'python2-oslo-i18n' 'python-rfc3986' 'python2-rfc3986' - 'python-yaml' 'python2-yaml' 'python2-enum34') -checkdepends=('python-oslotest' 'python2-oslotest' 'python-sphinx' 'python2-sphinx' - 'python-testrepository' 'python2-testrepository' 'python-requests-mock' - 'python2-requests-mock' 'python-oslo-log' 'python2-oslo-log') -options=('!emptydirs') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.config/archive/$pkgver.tar.gz") -sha512sums=('35d3339e5c2664cd083586cb27aa44ce77eb92a6b83ba8697c3de6268096a2ca75895c5fce3c607cdf801c46597ccc1cf461bdaa27af044d49c6dfee9c44694a') - -prepare() { - sed -i '/argparse/d' oslo.config-$pkgver/requirements.txt - - cp -a oslo.config-$pkgver{,-py2} - find oslo.config-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + - - export PBR_VERSION=$pkgver -} - -build() { - cd "$srcdir"/oslo.config-$pkgver - python setup.py build - - cd "$srcdir"/oslo.config-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/oslo.config-$pkgver - python setup.py testr - - cd "$srcdir"/oslo.config-$pkgver-py2 - PYTHON=python2 python2 setup.py testr -} - -package_python-oslo-config() { - depends=('python-six' 'python-netaddr' 'python-stevedore' 'python-debtcollector' - 'python-oslo-i18n' 'python-rfc3986' 'python-yaml') - - cd "$srcdir"/oslo.config-$pkgver - python setup.py install --root="$pkgdir/" --optimize=1 -} - -package_python2-oslo-config() { - depends=('python2-six' 'python2-netaddr' 'python2-stevedore' 'python2-debtcollector' - 'python2-oslo-i18n' 'python2-rfc3986' 'python2-yaml' 'python2-enum34') - - cd "$srcdir"/oslo.config-$pkgver-py2 - python2 setup.py install --root="$pkgdir/" --optimize=1 - mv "$pkgdir"/usr/bin/oslo-config-generator{,2} - mv "$pkgdir"/usr/bin/oslo-config-validator{,2} -} - -# vim:set ts=2 sw=2 et: Copied: python-oslo-config/repos/community-any/PKGBUILD (from rev 401695, python-oslo-config/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-11-06 14:05:39 UTC (rev 401696) @@ -0,0 +1,66 @@ +# 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) +pkgver=6.7.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=('Apache') +makedepends=('python-setuptools' 'python2-setuptools' 'python-netaddr' 'python2-netaddr' + 'python-stevedore' 'python2-stevedore' 'python-debtcollector' 'python2-debtcollector' + 'python-oslo-i18n' 'python2-oslo-i18n' 'python-rfc3986' 'python2-rfc3986' + 'python-yaml' 'python2-yaml' 'python2-enum34') +checkdepends=('python-oslotest' 'python2-oslotest' 'python-sphinx' 'python2-sphinx' + 'python-testrepository' 'python2-testrepository' 'python-requests-mock' + 'python2-requests-mock' 'python-oslo-log' 'python2-oslo-log') +options=('!emptydirs') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.config/archive/$pkgver.tar.gz") +sha512sums=('0599d690ebee2d22f1ecde89b8df839ffb75df3a5b2450b0d3c7d57b282735ca1280aabfc87b515a77f4b25a245ffb3fb46fda63e8fd0d1bf65acdecd2667c89') + +prepare() { + sed -i '/argparse/d' oslo.config-$pkgver/requirements.txt + + cp -a oslo.config-$pkgver{,-py2} + find oslo.config-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} + + + export PBR_VERSION=$pkgver +} + +build() { + cd "$srcdir"/oslo.config-$pkgver + python setup.py build + + cd "$srcdir"/oslo.config-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/oslo.config-$pkgver + python setup.py testr + + cd "$srcdir"/oslo.config-$pkgver-py2 + PYTHON=python2 python2 setup.py testr +} + +package_python-oslo-config() { + depends=('python-six' 'python-netaddr' 'python-stevedore' 'python-debtcollector' + 'python-oslo-i18n' 'python-rfc3986' 'python-yaml') + + cd "$srcdir"/oslo.config-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-oslo-config() { + depends=('python2-six' 'python2-netaddr' 'python2-stevedore' 'python2-debtcollector' + 'python2-oslo-i18n' 'python2-rfc3986' 'python2-yaml' 'python2-enum34') + + cd "$srcdir"/oslo.config-$pkgver-py2 + python2 setup.py install --root="$pkgdir/" --optimize=1 + mv "$pkgdir"/usr/bin/oslo-config-generator{,2} + mv "$pkgdir"/usr/bin/oslo-config-validator{,2} +} + +# vim:set ts=2 sw=2 et: