[arch-commits] Commit in python-oslo-utils/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 05:43:19 UTC 2019
Date: Saturday, October 26, 2019 @ 05:43:18
Author: foutrelis
Revision: 520171
archrelease: copy trunk to community-staging-any
Added:
python-oslo-utils/repos/community-staging-any/
python-oslo-utils/repos/community-staging-any/PKGBUILD
(from rev 520170, python-oslo-utils/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-oslo-utils/repos/community-staging-any/PKGBUILD (from rev 520170, python-oslo-utils/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 05:43:18 UTC (rev 520171)
@@ -0,0 +1,60 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-oslo-utils
+pkgname=(python-oslo-utils python2-oslo-utils)
+pkgver=3.41.2
+pkgrel=2
+pkgdesc="Oslo Utility library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.utils/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python2-funcsigs'
+ 'python-iso8601' 'python2-iso8601' 'python-oslo-i18n' 'python2-oslo-i18n'
+ 'python2-monotonic' 'python-pytz' 'python2-pytz' 'python-netaddr' 'python2-netaddr'
+ 'python-netifaces' 'python2-netifaces' 'python-debtcollector' 'python2-debtcollector')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-ddt' 'python2-ddt' 'python-eventlet'
+ 'python2-eventlet')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.utils/archive/$pkgver.tar.gz")
+sha512sums=('cef8a9c49e60b17053960618a1bb62af4ae752b58c80403a0d17711e5d5d998b980bf00fc3c0f53180379d2edd230a666d2ce76c44ba88abf6add6355fe6f97d')
+
+prepare() {
+ cp -a oslo.utils-$pkgver{,-py2}
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/oslo.utils-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/oslo.utils-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/oslo.utils-$pkgver
+ stestr run
+
+ cd "$srcdir"/oslo.utils-$pkgver-py2
+ PYTHON=python2 stestr2 run
+}
+
+package_python-oslo-utils() {
+ depends=('python-six' 'python-pbr' 'python-iso8601' 'python-oslo-i18n' 'python-pytz'
+ 'python-netaddr' 'python-netifaces' 'python-debtcollector')
+
+ cd "$srcdir"/oslo.utils-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-oslo-utils() {
+ depends=('python2-six' 'python2-pbr' 'python2-iso8601' 'python2-oslo-i18n' 'python2-monotonic'
+ 'python2-pytz' 'python2-netaddr' 'python2-netifaces' 'python2-debtcollector'
+ 'python2-funcsigs')
+
+ cd "$srcdir"/oslo.utils-$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