[arch-commits] Commit in python-oslo-utils/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Jul 18 02:53:33 UTC 2018
Date: Wednesday, July 18, 2018 @ 02:53:33
Author: foutrelis
Revision: 361548
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 361547, python-oslo-utils/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: python-oslo-utils/repos/community-staging-any/PKGBUILD (from rev 361547, python-oslo-utils/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-18 02:53:33 UTC (rev 361548)
@@ -0,0 +1,65 @@
+# $Id$
+# 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.36.3
+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-testrepository' 'python2-testrepository')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.utils/archive/$pkgver.tar.gz")
+sha512sums=('62d80ad0cd6ae468750e5ac1d4dfad506948f7aff7cc41868943b10754917b3bd97528bf46ebd95c4194cc0b4658a942df74f5d51d3209e7047333146b76f0cc')
+
+prepare() {
+ cp -a oslo.utils-$pkgver{,-py2}
+
+ # Use python 3's standard monotonic function
+ sed -i '/monotonic/d' oslo.utils-$pkgver/requirements.txt
+ sed -i 's/from monotonic import monotonic/from time import monotonic/' oslo.utils-$pkgver/oslo_utils/timeutils.py
+
+ 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
+ python setup.py testr || warning "Tests failed"
+
+ cd "$srcdir"/oslo.utils-$pkgver-py2
+ PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+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