[arch-commits] Commit in python-pbr/repos/community-staging-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jul 20 03:05:16 UTC 2018


    Date: Friday, July 20, 2018 @ 03:05:15
  Author: felixonmars
Revision: 362481

archrelease: copy trunk to community-staging-any

Added:
  python-pbr/repos/community-staging-any/PKGBUILD
    (from rev 362480, python-pbr/trunk/PKGBUILD)
Deleted:
  python-pbr/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |  122 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 61 insertions(+), 61 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-20 03:04:58 UTC (rev 362480)
+++ PKGBUILD	2018-07-20 03:05:15 UTC (rev 362481)
@@ -1,61 +0,0 @@
-# $Id$
-# 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=4.1.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-testscenarios' 'python2-testscenarios' 'python-testrepository' 'python2-testrepository'
-              'python-testresources' 'python2-testresources' '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=('5473babfcd8aee118b2495e1ea4cfb9fdb4b1354b569ecdcb9c830299812b3df59862f56224a9eabb69c89c44995b707e7167c3946c23e2b5367048e29cdb61b')
-
-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
-  python setup.py testr || warning "Tests failed"
-
-  cd "$srcdir"/pbr-$pkgver-py2
-  PYTHON=python2 python2 setup.py testr || warning "Tests failed"
-}
-
-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 362480, python-pbr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-20 03:05:15 UTC (rev 362481)
@@ -0,0 +1,61 @@
+# $Id$
+# 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=4.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-testscenarios' 'python2-testscenarios' 'python-testrepository' 'python2-testrepository'
+              'python-testresources' 'python2-testresources' '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=('3ab041f90ca8013a6472fe562527ecf1661219517db2f6373f86d25c22b339bc4c50e89f26b947f6804e1dffee165b2918d175b0cce6fa55b556c7c4c638f9ca')
+
+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
+  python setup.py testr || warning "Tests failed"
+
+  cd "$srcdir"/pbr-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+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