[arch-commits] Commit in python-pbr/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Nov 11 23:38:06 UTC 2021
Date: Thursday, November 11, 2021 @ 23:38:05
Author: felixonmars
Revision: 1042639
archrelease: copy trunk to community-any
Added:
python-pbr/repos/community-any/PKGBUILD
(from rev 1042638, python-pbr/trunk/PKGBUILD)
Deleted:
python-pbr/repos/community-any/PKGBUILD
----------+
PKGBUILD | 116 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-11 23:37:56 UTC (rev 1042638)
+++ PKGBUILD 2021-11-11 23:38:05 UTC (rev 1042639)
@@ -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.6.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' '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=('d60ee609bf09ad3fccd75429468b5200cf2e7cb215971136eeafe93586f8e33a6f8e28140340085bf25fe46b86bbf4139b407717c4333ecfc78a47ee1f72e971')
-
-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-any/PKGBUILD (from rev 1042638, python-pbr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-11 23:38:05 UTC (rev 1042639)
@@ -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=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' '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