[arch-commits] Commit in python-oslo-config/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 24 17:53:50 UTC 2016
Date: Saturday, December 24, 2016 @ 17:53:49
Author: foutrelis
Revision: 201700
archrelease: copy trunk to community-staging-any
Added:
python-oslo-config/repos/community-staging-any/
python-oslo-config/repos/community-staging-any/PKGBUILD
(from rev 201699, python-oslo-config/trunk/PKGBUILD)
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
Copied: python-oslo-config/repos/community-staging-any/PKGBUILD (from rev 201699, python-oslo-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 17:53:49 UTC (rev 201700)
@@ -0,0 +1,61 @@
+# $Id$
+# 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)
+pkgver=3.21.0
+pkgrel=2
+pkgdesc="parsing command line arguments and .ini style configuration files"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.config/$pkgver"
+license=('Apache')
+makedepends=('git' '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')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-sphinx' 'python2-sphinx')
+options=('!emptydirs')
+source=("git+https://git.openstack.org/openstack/oslo.config#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ sed -i '/argparse/d' oslo.config/requirements.txt
+
+ cp -a oslo.config{,-py2}
+ find oslo.config-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+ cd "$srcdir"/oslo.config
+ python setup.py build
+
+ cd "$srcdir"/oslo.config-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/oslo.config
+ python setup.py testr
+
+ cd "$srcdir"/oslo.config-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')
+
+ cd "$srcdir"/oslo.config
+ 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')
+
+ 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
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list