[arch-commits] Commit in python-zope-testrunner/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Oct 9 18:57:41 UTC 2018


    Date: Tuesday, October 9, 2018 @ 18:57:40
  Author: felixonmars
Revision: 391749

upgpkg: python-zope-testrunner 4.9-1

Modified:
  python-zope-testrunner/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-09 18:54:48 UTC (rev 391748)
+++ PKGBUILD	2018-10-09 18:57:40 UTC (rev 391749)
@@ -2,8 +2,8 @@
 
 pkgbase=python-zope-testrunner
 pkgname=('python-zope-testrunner' 'python2-zope-testrunner')
-pkgver=4.8.1
-pkgrel=2
+pkgver=4.9
+pkgrel=1
 pkgdesc="Zope testrunner script"
 arch=('any')
 url="https://github.com/zopefoundation/zope.testrunner"
@@ -12,9 +12,9 @@
              'python2-zope-interface' 'python-zope-exceptions' 'python2-zope-exceptions'
              'python-six' 'python2-six')
 checkdepends=('python-zope-testing' 'python2-zope-testing' 'python-zope-testrunner'
-              'python2-zope-testrunner')
+              'python2-zope-testrunner' 'python-virtualenv' 'python2-virtualenv')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.testrunner/archive/$pkgver.tar.gz")
-sha512sums=('3ea5ceacdeff59c7f393efd6ba6768bd04701739f507a21902112fd5a0b5f31ba470178e761eddb0864caaafec7fae11574d094892825603f45c3b5e4faeec71')
+sha512sums=('9208d1730bc64e1d74e7c84041244b99b3fdb4d18bc2161f161591087a4e54d417fec7d3a4b9c02c5b2baffecb1b0ac6f8e8022acb4e6311155a80f20235ffd4')
 
 prepare() {
   cp -a zope.testrunner-$pkgver{,-py2}
@@ -30,10 +30,20 @@
 
 check() {
   cd "$srcdir"/zope.testrunner-$pkgver
-  python setup.py test
+  virtualenv "$srcdir/pyvenv" --system-site-packages
+  (
+    . "$srcdir/pyvenv/bin/activate"
+    python setup.py develop
+    python setup.py test
+  )
 
   cd "$srcdir"/zope.testrunner-$pkgver-py2
-  python2 setup.py test
+  virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages
+  (
+    . "$srcdir/pyvenv-py2/bin/activate"
+    python2 setup.py develop
+    python2 setup.py test
+  )
 }
 
 package_python-zope-testrunner() {



More information about the arch-commits mailing list