[arch-commits] Commit in python-pbr/repos/community-staging-any (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 21:42:42 UTC 2021
Date: Wednesday, December 1, 2021 @ 21:42:42
Author: foutrelis
Revision: 1061026
archrelease: copy trunk to community-staging-any
Added:
python-pbr/repos/community-staging-any/PKGBUILD
(from rev 1061024, python-pbr/trunk/PKGBUILD)
Deleted:
python-pbr/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 116 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-01 21:42:41 UTC (rev 1061025)
+++ PKGBUILD 2021-12-01 21:42:42 UTC (rev 1061026)
@@ -1,58 +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.7.0
-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=('64d1d2170f95ffba2ece3cc9b899241158621fe714ad71d71bb4f5ad04f71ce1c87c94ef5c5fe38ec9b422989b2e7ff6069e9551a29295f3b42caf5fc78bbe58')
-
-export PBR_VERSION=$pkgver
-
-prepare() {
- sed -i 's/virtualenv.create_environment(path, clear=True)/virtualenv.cli_run([path, "--clear"])/' pbr-$pkgver/pbr/tests/test_packaging.py
-
- 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}
-}
Copied: python-pbr/repos/community-staging-any/PKGBUILD (from rev 1061024, python-pbr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-01 21:42:42 UTC (rev 1061026)
@@ -0,0 +1,58 @@
+# 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.7.0
+pkgrel=3
+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=('64d1d2170f95ffba2ece3cc9b899241158621fe714ad71d71bb4f5ad04f71ce1c87c94ef5c5fe38ec9b422989b2e7ff6069e9551a29295f3b42caf5fc78bbe58')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+ sed -i 's/virtualenv.create_environment(path, clear=True)/virtualenv.cli_run([path, "--clear"])/' pbr-$pkgver/pbr/tests/test_packaging.py
+
+ 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