[arch-commits] Commit in python-oslo-context/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 04:28:18 UTC 2019


    Date: Saturday, October 26, 2019 @ 04:28:18
  Author: felixonmars
Revision: 520011

archrelease: copy trunk to community-staging-any

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

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

Copied: python-oslo-context/repos/community-staging-any/PKGBUILD (from rev 520010, python-oslo-context/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 04:28:18 UTC (rev 520011)
@@ -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.23.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')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.context/archive/$pkgver.tar.gz")
+sha512sums=('429ba2796ad331729f7a06bb5829912ce275948a430b0f115573da6bb53af476c4edefc46f899ba551f6e50a0ee5f13392b7f457b2698777254f43290c6035a3')
+
+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