[arch-commits] Commit in python-oslo-context/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Feb 13 10:32:27 UTC 2020


    Date: Thursday, February 13, 2020 @ 10:32:26
  Author: felixonmars
Revision: 570025

upgpkg: python-oslo-context 3.0.0-2: disable tests for python2

Modified:
  python-oslo-context/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-13 10:32:19 UTC (rev 570024)
+++ PKGBUILD	2020-02-13 10:32:26 UTC (rev 570025)
@@ -4,7 +4,7 @@
 pkgbase=python-oslo-context
 pkgname=(python-oslo-context python2-oslo-context)
 pkgver=3.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="OpenStack Context library"
 arch=('any')
 url="https://pypi.python.org/pypi/oslo.context/$pkgver"
@@ -11,15 +11,15 @@
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-debtcollector'
              'python2-debtcollector')
-checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest')
+checkdepends=('python-mock' 'python-oslotest')
 options=('!emptydirs')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.context/archive/$pkgver.tar.gz")
 sha512sums=('7e8f1e4cb0d84466e6ce15052f136e922125cc5f434d0fb8ae109e743e8ed7cbd2caf6600b5ee70ef724c808483eb0331f738bee1625f1f931316ab56bf6143d')
 
+export PBR_VERSION=$pkgver
+
 prepare() {
   cp -a oslo.context-$pkgver{,-py2}
-
-  export PBR_VERSION=$pkgver
 }
 
 build() {
@@ -31,11 +31,8 @@
 }
 
 check() {
-  cd "$srcdir"/oslo.context-$pkgver
+  cd oslo.context-$pkgver
   stestr run
-
-  cd "$srcdir"/oslo.context-$pkgver-py2
-  PYTHON=python2 stestr2 run
 }
 
 package_python-oslo-context() {



More information about the arch-commits mailing list