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

Jelle van der Waa jelle at gemini.archlinux.org
Mon Nov 1 09:03:01 UTC 2021


    Date: Monday, November 1, 2021 @ 09:03:00
  Author: jelle
Revision: 1035154

upgpkg: python-zope-testrunner 5.3.0-2

Modified:
  python-zope-testrunner/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++-------------------------------
 1 file changed, 9 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-01 08:48:48 UTC (rev 1035153)
+++ PKGBUILD	2021-11-01 09:03:00 UTC (rev 1035154)
@@ -1,18 +1,18 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-zope-testrunner
-pkgname=('python-zope-testrunner' 'python2-zope-testrunner')
+pkgname=python-zope-testrunner
 pkgver=5.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Zope testrunner script"
 arch=('any')
 url="https://github.com/zopefoundation/zope.testrunner"
 license=('ZPL')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
-             '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' 'python-virtualenv' 'python2-virtualenv')
+depends=('python-setuptools' 'python-zope-interface'
+         'python-zope-exceptions' 'python-six')
+makedepends=('python-setuptools' 'python-zope-interface'
+             'python-zope-exceptions' 'python-six')
+checkdepends=('python-zope-testing' 'python-zope-testrunner'
+              'python-virtualenv')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.testrunner/archive/$pkgver.tar.gz")
 sha512sums=('8d443b80663248286d7695c3d82bf7e33d26ec9e7efbafc1ab780da144f40faf2ad8b18af490842122f73346ca60cb4dd2857737fe4fc4e165f911d8a7eaa7c3')
 
@@ -23,9 +23,6 @@
 build() {
   cd "$srcdir"/zope.testrunner-$pkgver
   python setup.py build
-
-  cd "$srcdir"/zope.testrunner-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -36,30 +33,11 @@
     python setup.py develop
     python setup.py test
   )
-
-  cd "$srcdir"/zope.testrunner-$pkgver-py2
-  virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages
-  (
-    . "$srcdir/pyvenv-py2/bin/activate"
-    python2 setup.py develop
-    python2 setup.py test
-  )
 }
 
-package_python-zope-testrunner() {
-  depends=('python-setuptools' 'python-zope-interface' 'python-zope-exceptions' 'python-six')
-
+package() {
   cd zope.testrunner-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-zope-testrunner() {
-  depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-exceptions' 'python2-six')
-
-  cd zope.testrunner-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  mv "$pkgdir"/usr/bin/zope-testrunner{,2}
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list