[arch-commits] Commit in python-oslo-utils/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jul 11 05:08:12 UTC 2017
Date: Tuesday, July 11, 2017 @ 05:08:11
Author: felixonmars
Revision: 243858
upgpkg: python-oslo-utils 3.27.0-1
Modified:
python-oslo-utils/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-11 05:07:04 UTC (rev 243857)
+++ PKGBUILD 2017-07-11 05:08:11 UTC (rev 243858)
@@ -4,41 +4,43 @@
pkgbase=python-oslo-utils
pkgname=(python-oslo-utils python2-oslo-utils)
-pkgver=3.26.0
+pkgver=3.27.0
pkgrel=1
pkgdesc="Oslo Utility library"
arch=('any')
url="https://pypi.python.org/pypi/oslo.utils/$pkgver"
license=('Apache')
-makedepends=('git' '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')
+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')
-source=("git+https://git.openstack.org/openstack/oslo.utils#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.utils/archive/$pkgver.tar.gz")
+sha512sums=('f7f0d0548faf954732ef4d9a4cc7191555ab992310cf1a0306bbe00c99572dc578e9579d225e550b34e8858d5d13034c8924075e1d6111c97df389f21f1b657f')
prepare() {
- cp -a oslo.utils{,-py2}
+ cp -a oslo.utils-$pkgver{,-py2}
# Use python 3's standard monotonic function
- sed -i '/monotonic/d' oslo.utils/requirements.txt
- sed -i 's/from monotonic import monotonic/from time import monotonic/' oslo.utils/oslo_utils/timeutils.py
+ 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
+ cd "$srcdir"/oslo.utils-$pkgver
python setup.py build
- cd "$srcdir"/oslo.utils-py2
+ cd "$srcdir"/oslo.utils-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/oslo.utils
+ cd "$srcdir"/oslo.utils-$pkgver
python setup.py testr
- cd "$srcdir"/oslo.utils-py2
+ cd "$srcdir"/oslo.utils-$pkgver-py2
PYTHON=python2 python2 setup.py testr
}
@@ -46,7 +48,7 @@
depends=('python-six' 'python-pbr' 'python-iso8601' 'python-oslo-i18n' 'python-pytz'
'python-netaddr' 'python-netifaces' 'python-debtcollector')
- cd "$srcdir"/oslo.utils
+ cd "$srcdir"/oslo.utils-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
}
@@ -55,7 +57,7 @@
'python2-pytz' 'python2-netaddr' 'python2-netifaces' 'python2-debtcollector'
'python2-funcsigs')
- cd "$srcdir"/oslo.utils-py2
+ cd "$srcdir"/oslo.utils-$pkgver-py2
python2 setup.py install --root="$pkgdir/" --optimize=1
}
More information about the arch-commits
mailing list