[arch-commits] Commit in python-pbr/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 13 10:57:50 UTC 2020
Date: Thursday, February 13, 2020 @ 10:57:49
Author: felixonmars
Revision: 570079
archrelease: copy trunk to community-any
Added:
python-pbr/repos/community-any/PKGBUILD
(from rev 570078, python-pbr/trunk/PKGBUILD)
Deleted:
python-pbr/repos/community-any/PKGBUILD
----------+
PKGBUILD | 118 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 56 insertions(+), 62 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-13 10:57:34 UTC (rev 570078)
+++ PKGBUILD 2020-02-13 10:57:49 UTC (rev 570079)
@@ -1,62 +0,0 @@
-# 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.4
-pkgrel=1
-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=('0b7d74a16fe2e08f8e39c445c922dbd53fc47c339f6d07993344479aeb2bfae569c02fa819c84bcedcf99a0c098b71f18880ff2434dea8af58ae1b71ffe0ac26')
-
-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}
-}
Copied: python-pbr/repos/community-any/PKGBUILD (from rev 570078, python-pbr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-02-13 10:57:49 UTC (rev 570079)
@@ -0,0 +1,56 @@
+# 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.4
+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' 'python-testscenarios' 'python-testresources' 'python-testrepository'
+ 'python-mock' 'python-virtualenv' 'python-wheel' 'python-sphinx')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack-dev/pbr/archive/$pkgver.tar.gz")
+sha512sums=('0b7d74a16fe2e08f8e39c445c922dbd53fc47c339f6d07993344479aeb2bfae569c02fa819c84bcedcf99a0c098b71f18880ff2434dea8af58ae1b71ffe0ac26')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+ cp -a pbr-$pkgver{,-py2}
+
+ find pbr-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+ cd "$srcdir"/pbr-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pbr-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd pbr-$pkgver
+ stestr 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