[arch-commits] Commit in python-zope-testrunner/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:05:24 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:05:23
  Author: foutrelis
Revision: 748467

archrelease: copy trunk to community-staging-any

Added:
  python-zope-testrunner/repos/community-staging-any/
  python-zope-testrunner/repos/community-staging-any/PKGBUILD
    (from rev 748465, python-zope-testrunner/trunk/PKGBUILD)

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: python-zope-testrunner/repos/community-staging-any/PKGBUILD (from rev 748465, python-zope-testrunner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:05:23 UTC (rev 748467)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zope-testrunner
+pkgname=('python-zope-testrunner' 'python2-zope-testrunner')
+pkgver=5.2
+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')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.testrunner/archive/$pkgver.tar.gz")
+sha512sums=('08ba52fbde1cf4af5cc956e5e42e073b3ad72ff8275ca606a71bb42464c53fa714faef6bc6c48f07afb36a52d70744bd28aac583648483aadd8bad7a0d1ff690')
+
+prepare() {
+  cp -a zope.testrunner-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/zope.testrunner-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/zope.testrunner-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/zope.testrunner-$pkgver
+  virtualenv "$srcdir/pyvenv" --system-site-packages
+  (
+    . "$srcdir/pyvenv/bin/activate"
+    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')
+
+  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