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

Felix Yan felixonmars at archlinux.org
Mon Dec 3 09:26:01 UTC 2018


    Date: Monday, December 3, 2018 @ 09:26:00
  Author: felixonmars
Revision: 410878

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  112 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 55 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-03 09:25:40 UTC (rev 410877)
+++ PKGBUILD	2018-12-03 09:26:00 UTC (rev 410878)
@@ -1,57 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-
-pkgbase=python-oslo-context
-pkgname=(python-oslo-context python2-oslo-context)
-pkgver=2.21.0
-pkgrel=2
-pkgdesc="OpenStack Context library"
-arch=('any')
-url="https://pypi.python.org/pypi/oslo.context/$pkgver"
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-debtcollector'
-             'python2-debtcollector')
-checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest'
-              'python-testrepository' 'python2-testrepository')
-options=('!emptydirs')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.context/archive/$pkgver.tar.gz")
-sha512sums=('af8943894134bcf7ce533f91a4dffe5d7347225fe4b58506d18b702df580073575a50e93fda9a632d445beb0f23a2dda42b7c58c1be5d786ab1420afe93b05dd')
-
-prepare() {
-  cp -a oslo.context-$pkgver{,-py2}
-
-  export PBR_VERSION=$pkgver
-}
-
-build() {
-  cd "$srcdir"/oslo.context-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/oslo.context-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/oslo.context-$pkgver
-  python setup.py testr
-
-  cd "$srcdir"/oslo.context-$pkgver-py2
-  PYTHON=python2 python2 setup.py testr
-}
-
-package_python-oslo-context() {
-  depends=('python-pbr' 'python-debtcollector')
-
-  cd "$srcdir"/oslo.context-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-oslo-context() {
-  depends=('python2-pbr' 'python2-debtcollector')
-
-  cd "$srcdir"/oslo.context-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-oslo-context/repos/community-any/PKGBUILD (from rev 410877, python-oslo-context/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-03 09:26:00 UTC (rev 410878)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-oslo-context
+pkgname=(python-oslo-context python2-oslo-context)
+pkgver=2.22.0
+pkgrel=1
+pkgdesc="OpenStack Context library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.context/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-debtcollector'
+             'python2-debtcollector')
+checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.context/archive/$pkgver.tar.gz")
+sha512sums=('f88cd618cd73a21787f1c49554f1d12863a1909724e6d29be2a5011c5103b54675c521049acb50b7ae8f69c7918b7947f3a84a75d806d267c30015e366d7c971')
+
+prepare() {
+  cp -a oslo.context-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/oslo.context-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/oslo.context-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/oslo.context-$pkgver
+  stestr run
+
+  cd "$srcdir"/oslo.context-$pkgver-py2
+  PYTHON=python2 stestr2 run
+}
+
+package_python-oslo-context() {
+  depends=('python-pbr' 'python-debtcollector')
+
+  cd "$srcdir"/oslo.context-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-oslo-context() {
+  depends=('python2-pbr' 'python2-debtcollector')
+
+  cd "$srcdir"/oslo.context-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list