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

Felix Yan fyan at archlinux.org
Fri Feb 26 10:14:52 UTC 2016


    Date: Friday, February 26, 2016 @ 11:14:52
  Author: fyan
Revision: 163501

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  117 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 58 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-26 10:14:32 UTC (rev 163500)
+++ PKGBUILD	2016-02-26 10:14:52 UTC (rev 163501)
@@ -1,59 +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)
-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:

Copied: python-oslo-config/repos/community-any/PKGBUILD (from rev 163500, python-oslo-config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-02-26 10:14:52 UTC (rev 163501)
@@ -0,0 +1,58 @@
+# $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.9.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-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')
+
+  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