[arch-commits] Commit in python-osc-lib/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue May 7 19:41:02 UTC 2019


    Date: Tuesday, May 7, 2019 @ 19:41:01
  Author: felixonmars
Revision: 462459

archrelease: copy trunk to community-any

Added:
  python-osc-lib/repos/community-any/PKGBUILD
    (from rev 462458, python-osc-lib/trunk/PKGBUILD)
Deleted:
  python-osc-lib/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  106 +++++++++++++++++++++++--------------------------------------
 1 file changed, 41 insertions(+), 65 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-07 19:40:50 UTC (rev 462458)
+++ PKGBUILD	2019-05-07 19:41:01 UTC (rev 462459)
@@ -1,65 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-
-pkgbase=python-osc-lib
-pkgname=(python-osc-lib python2-osc-lib)
-pkgver=1.12.1
-pkgrel=1
-pkgdesc="OpenStackClient Library"
-arch=('any')
-url="https://docs.openstack.org/osc-lib/latest/"
-license=('Apache')
-makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
-             'python-babel' 'python2-babel' 'python-cliff' 'python2-cliff'
-             'python-keystoneauth1' 'python2-keystoneauth1' 'python-os-client-config'
-             'python2-os-client-config' 'python-oslo-i18n' 'python2-oslo-i18n' 'python-oslo-utils'
-             'python2-oslo-utils' 'python-simplejson' 'python2-simplejson' 'python-stevedore'
-             'python2-stevedore' 'python-openstacksdk' 'python2-openstacksdk')
-checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock'
-              'python2-requests-mock' 'python-testrepository' 'python2-testrepository')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/osc-lib/archive/$pkgver.tar.gz")
-sha512sums=('211d5f67f732e7f541b7542fe116a6653b9871c5b3b20f31d24f4768fd32629944e9eb8b7d7f636942e10eb106397178aca7fff1dc97e9d05c6e3c29c7007a6c')
-
-export PBR_VERSION=$pkgver
-
-prepare() {
-  # https://storyboard.openstack.org/#!/story/2003142
-  sed -i 's/issubclass/isinstance/' osc-lib-$pkgver/osc_lib/utils/__init__.py
-  cp -a osc-lib-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/osc-lib-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/osc-lib-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/osc-lib-$pkgver
-  stestr run || warning "Tests failed"
-
-  cd "$srcdir"/osc-lib-$pkgver-py2
-  PYTHON=python2 stestr2 run || warning "Tests failed"
-}
-
-package_python-osc-lib() {
-  depends=('python-six' 'python-pbr' 'python-babel' 'python-cliff' 'python-keystoneauth1'
-           'python-os-client-config' 'python-oslo-i18n' 'python-oslo-utils' 'python-stevedore'
-           'python-simplejson' 'python-openstacksdk')
-
-  cd osc-lib-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-osc-lib() {
-  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-cliff' 'python2-keystoneauth1'
-           'python2-os-client-config' 'python2-oslo-i18n' 'python2-oslo-utils' 'python2-stevedore'
-           'python2-simplejson' 'python2-openstacksdk')
-
-  cd osc-lib-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-osc-lib/repos/community-any/PKGBUILD (from rev 462458, python-osc-lib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-05-07 19:41:01 UTC (rev 462459)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-osc-lib
+pkgver=1.12.1
+pkgrel=2
+pkgdesc="OpenStackClient Library"
+arch=('any')
+url="https://docs.openstack.org/osc-lib/latest/"
+license=('Apache')
+depends=('python-six' 'python-pbr' 'python-babel' 'python-cliff' 'python-keystoneauth1'
+         'python-os-client-config' 'python-oslo-i18n' 'python-oslo-utils' 'python-stevedore'
+         'python-simplejson' 'python-openstacksdk')
+makedepends=('python-setuptools')
+checkdepends=('python-oslotest' 'python-requests-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/osc-lib/archive/$pkgver.tar.gz")
+sha512sums=('211d5f67f732e7f541b7542fe116a6653b9871c5b3b20f31d24f4768fd32629944e9eb8b7d7f636942e10eb106397178aca7fff1dc97e9d05c6e3c29c7007a6c')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  # https://storyboard.openstack.org/#!/story/2003142
+  sed -i 's/issubclass/isinstance/' osc-lib-$pkgver/osc_lib/utils/__init__.py
+
+  sed -i 's/assertItemsEqual/assertCountEqual/' osc-lib-$pkgver/osc_lib/tests/cli/*.py
+}
+
+build() {
+  cd osc-lib-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd osc-lib-$pkgver
+  stestr run
+}
+
+package() {
+  cd osc-lib-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list