[arch-commits] Commit in python-oslo-log/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:21:22 UTC 2019
Date: Saturday, October 26, 2019 @ 20:21:22
Author: felixonmars
Revision: 520477
archrelease: copy trunk to community-staging-any
Added:
python-oslo-log/repos/community-staging-any/
python-oslo-log/repos/community-staging-any/PKGBUILD
(from rev 520474, python-oslo-log/trunk/PKGBUILD)
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Copied: python-oslo-log/repos/community-staging-any/PKGBUILD (from rev 520474, python-oslo-log/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:21:22 UTC (rev 520477)
@@ -0,0 +1,66 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-oslo-log
+pkgname=(python-oslo-log python2-oslo-log)
+pkgver=3.44.1
+pkgrel=2
+pkgdesc="Oslo Logging Library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.log/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-oslo-config'
+ 'python2-oslo-config' 'python-oslo-context' 'python2-oslo-context' 'python-oslo-i18n'
+ 'python2-oslo-i18n' 'python-oslo-utils' 'python2-oslo-utils' 'python-oslo-serialization'
+ 'python2-oslo-serialization' 'python-debtcollector' 'python2-debtcollector'
+ 'python-pyinotify' 'python2-pyinotify' 'python-dateutil' 'python2-dateutil'
+ 'python-monotonic' 'python2-monotonic')
+checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.log/archive/$pkgver.tar.gz")
+sha512sums=('63e2ff26643f9cc37ef46f31b0ae16d0df6078e5a1431b6610dd15bcc2fb5e59b6723cfabb10117801d774c63f783f4c86a100dff611993b6f6447b78a36f3d8')
+
+prepare() {
+ sed -i 's/unittest2/unittest/g' oslo.log-$pkgver/oslo_log/tests/unit/*.py
+ cp -a oslo.log-$pkgver{,-py2}
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/oslo.log-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/oslo.log-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/oslo.log-$pkgver
+ stestr run || warning "Tests failed"
+
+ cd "$srcdir"/oslo.log-$pkgver-py2
+ PYTHON=python2 stestr2 run
+}
+
+package_python-oslo-log() {
+ depends=('python-six' 'python-pbr' 'python-oslo-config' 'python-oslo-context' 'python-oslo-i18n'
+ 'python-oslo-utils' 'python-oslo-serialization' 'python-debtcollector' 'python-pyinotify'
+ 'python-dateutil' 'python-monotonic')
+
+ cd "$srcdir"/oslo.log-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-oslo-log() {
+ depends=('python2-six' 'python2-pbr' 'python2-oslo-config' 'python2-oslo-context' 'python2-oslo-i18n'
+ 'python2-oslo-utils' 'python2-oslo-serialization' 'python2-debtcollector' 'python2-pyinotify'
+ 'python2-dateutil' 'python2-monotonic')
+
+ cd "$srcdir"/oslo.log-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/convert-json{,2}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list