[arch-commits] Commit in python-zope-testing/repos (2 files)
Felix Yan
fyan at archlinux.org
Tue Nov 3 06:18:48 UTC 2015
Date: Tuesday, November 3, 2015 @ 07:18:48
Author: fyan
Revision: 145727
archrelease: copy trunk to community-any
Added:
python-zope-testing/repos/community-any/
python-zope-testing/repos/community-any/PKGBUILD
(from rev 145726, python-zope-testing/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-zope-testing/repos/community-any/PKGBUILD (from rev 145726, python-zope-testing/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-11-03 06:18:48 UTC (rev 145727)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=('python-zope-testing' 'python2-zope-testing')
+pkgver=4.5.0
+pkgrel=1
+pkgdesc="Zope testing helpers"
+arch=('any')
+url="https://github.com/zopefoundation/zope.testing"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+ 'python2-zope-interface' 'git' 'python-zope-exceptions'
+ 'python2-zope-exceptions')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/zopefoundation/zope.testing.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+ cp -a zope.testing{,-py2}
+}
+
+build() {
+ cd "$srcdir/zope.testing"
+ python setup.py build
+
+ cd "$srcdir/zope.testing-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/zope.testing"
+ python setup.py test
+
+ cd "$srcdir/zope.testing-py2"
+ python2 setup.py test
+}
+
+package_python-zope-testing() {
+ depends=('python-setuptools' 'python-zope-interface' 'python-zope-exceptions')
+
+ cd "$srcdir/zope.testing"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-zope-testing() {
+ depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-exceptions')
+
+ cd "$srcdir/zope.testing"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list