[arch-commits] Commit in python-pbr/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:48:52 UTC 2019
Date: Friday, October 25, 2019 @ 15:48:51
Author: foutrelis
Revision: 519209
archrelease: copy trunk to community-staging-any
Added:
python-pbr/repos/community-staging-any/
python-pbr/repos/community-staging-any/PKGBUILD
(from rev 519207, python-pbr/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: python-pbr/repos/community-staging-any/PKGBUILD (from rev 519207, python-pbr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:48:51 UTC (rev 519209)
@@ -0,0 +1,62 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+
+pkgbase=python-pbr
+pkgname=(python-pbr python2-pbr)
+pkgver=5.4.3
+pkgrel=2
+pkgdesc="Python Build Reasonableness"
+arch=('any')
+url='https://pypi.python.org/pypi/pbr'
+license=('Apache')
+makedepends=('python2-setuptools' 'python-setuptools' 'git')
+checkdepends=('python-stestr' 'python2-stestr' 'python-testscenarios' 'python2-testscenarios'
+ 'python-testresources' 'python2-testresources' 'python-testrepository'
+ 'python2-testrepository' 'python-mock' 'python2-mock'
+ 'python-virtualenv' 'python2-virtualenv' 'python-wheel' 'python2-wheel'
+ 'python-sphinx' 'python2-sphinx')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack-dev/pbr/archive/$pkgver.tar.gz")
+sha512sums=('83e6357130cba3ed746e2192a87c612af9822212355f105475d98908b52aabd722afcc3932cc38135009023c15b057959411e76b4c5ab9ab6a664b3d26086863')
+
+prepare() {
+ cp -a pbr-$pkgver{,-py2}
+
+ find pbr-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/pbr-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pbr-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pbr-$pkgver
+ stestr run
+
+ cd "$srcdir"/pbr-$pkgver-py2
+ PYTHON=python2 stestr2 run
+}
+
+package_python-pbr() {
+ depends=('python-setuptools')
+
+ cd pbr-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pbr() {
+ depends=('python2-setuptools')
+
+ cd pbr-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/bin/pbr{,2}
+}
More information about the arch-commits
mailing list