[arch-commits] Commit in python-oslo-config/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan fyan at archlinux.org
Tue Feb 23 02:56:58 UTC 2016


    Date: Tuesday, February 23, 2016 @ 03:56:58
  Author: fyan
Revision: 163165

archrelease: copy trunk to community-any

Added:
  python-oslo-config/repos/community-any/PKGBUILD
    (from rev 163164, python-oslo-config/trunk/PKGBUILD)
Deleted:
  python-oslo-config/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  107 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 59 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-23 02:56:38 UTC (rev 163164)
+++ PKGBUILD	2016-02-23 02:56:58 UTC (rev 163165)
@@ -1,48 +0,0 @@
-# $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)
-_pypiname=oslo.config
-pkgver=3.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=('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:

Copied: python-oslo-config/repos/community-any/PKGBUILD (from rev 163164, python-oslo-config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-02-23 02:56:58 UTC (rev 163165)
@@ -0,0 +1,59 @@
+# $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.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=('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 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"/oslo.config
+  python setup.py build
+
+  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-six' 'python-netaddr' 'python-stevedore' 'python-debtcollector')
+
+  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')
+
+  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