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

Felix Yan felixonmars at archlinux.org
Thu Sep 5 06:50:57 UTC 2019


    Date: Thursday, September 5, 2019 @ 06:50:56
  Author: felixonmars
Revision: 508154

archrelease: copy trunk to community-any

Added:
  python-mox3/repos/community-any/PKGBUILD
    (from rev 508153, python-mox3/trunk/PKGBUILD)
Deleted:
  python-mox3/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  108 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 54 insertions(+), 54 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-05 06:50:39 UTC (rev 508153)
+++ PKGBUILD	2019-09-05 06:50:56 UTC (rev 508154)
@@ -1,54 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-mox3
-pkgname=('python-mox3' 'python2-mox3')
-pkgver=0.27.0
-pkgrel=1
-arch=('any')
-pkgdesc='Mock object framework for Python'
-url='http://docs.openstack.org/developer/mox3'
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
-             'python-fixtures' 'python2-fixtures')
-checkdepends=('python-oslotest' 'python2-oslotest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/mox3/archive/$pkgver.tar.gz")
-sha512sums=('e8f33fc5d7aae8b44610741ac4261bf42706c2df56acff6c14bc0f5e50de388d70928332e89ee330e45785b36cf1ee2e5750cc37066ef77e7d3609a7787d6dcf')
-
-prepare() {
-  # Python 3.6 fixes
-  sed -i 's/, flags=4//' mox3-$pkgver/mox3/tests/test_mox.py
-
-  cp -a mox3-$pkgver{,-py2}
-
-  export PBR_VERSION=$pkgver
-}
-
-build() {
-  cd "$srcdir"/mox3-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/mox3-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/mox3-$pkgver
-  stestr run
-
-  cd "$srcdir"/mox3-$pkgver-py2
-  PYTHON=python2 stestr2 run
-}
-
-package_python-mox3() {
-  depends=('python-pbr' 'python-fixtures')
-
-  cd mox3-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-mox3() {
-  depends=('python2-pbr' 'python2-fixtures')
-
-  cd mox3-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-mox3/repos/community-any/PKGBUILD (from rev 508153, python-mox3/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-05 06:50:56 UTC (rev 508154)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-mox3
+pkgname=('python-mox3' 'python2-mox3')
+pkgver=0.28.0
+pkgrel=1
+arch=('any')
+pkgdesc='Mock object framework for Python'
+url='https://docs.openstack.org/developer/mox3'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-fixtures' 'python2-fixtures')
+checkdepends=('python-oslotest' 'python2-oslotest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/mox3/archive/$pkgver.tar.gz")
+sha512sums=('abded0c36c8b1609d68d79c6c24616de534506178ff6ab1c93a23d67448973ee2515ced5fb0b6c73ff3f5cb72553dd75497356694eb6377c276fc2e1fc2c1cd3')
+
+prepare() {
+  # Python 3.6 fixes
+  sed -i 's/, flags=4//' mox3-$pkgver/mox3/tests/test_mox.py
+
+  cp -a mox3-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/mox3-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/mox3-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/mox3-$pkgver
+  stestr run
+
+  cd "$srcdir"/mox3-$pkgver-py2
+  PYTHON=python2 stestr2 run
+}
+
+package_python-mox3() {
+  depends=('python-pbr' 'python-fixtures')
+
+  cd mox3-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-mox3() {
+  depends=('python2-pbr' 'python2-fixtures')
+
+  cd mox3-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list