[arch-commits] Commit in python-pbr/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Nov 6 14:01:33 UTC 2018
Date: Tuesday, November 6, 2018 @ 14:01:32
Author: felixonmars
Revision: 401694
archrelease: copy trunk to community-any
Added:
python-pbr/repos/community-any/PKGBUILD
(from rev 401693, python-pbr/trunk/PKGBUILD)
Deleted:
python-pbr/repos/community-any/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 67 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-06 14:01:11 UTC (rev 401693)
+++ PKGBUILD 2018-11-06 14:01:32 UTC (rev 401694)
@@ -1,67 +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.1.0
-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=('6f114b4ecf441920aee74168c32d2ec3d1c549a7cd6754493048ada105332d2a9ef53c3c22af3f9dbed3e657820802a531fd6b37c1b3496bdf1cc0e83ccafbc3')
-
-prepare() {
- # Fix for new wheel
- sed -e 's/wheel.install/wheel.wheelfile/' \
- -e 's/wheel_file.zipfile/wheel_file/' \
- -i pbr-$pkgver/pbr/tests/test_packaging.py
-
- 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 401693, python-pbr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-11-06 14:01:32 UTC (rev 401694)
@@ -0,0 +1,67 @@
+# 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.1.1
+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=('b4b2b96836ebc6e661e10df76fabcb2a51da69a960b53826646a2a106c90590f0c45fd1ce102b90ae0bdd08328e82b249bdf869b5381d9fd8a4b977115de0fd2')
+
+prepare() {
+ # Fix for new wheel
+ sed -e 's/wheel.install/wheel.wheelfile/' \
+ -e 's/wheel_file.zipfile/wheel_file/' \
+ -i pbr-$pkgver/pbr/tests/test_packaging.py
+
+ 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