[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Sat Sep 12 05:36:05 UTC 2015
Date: Saturday, September 12, 2015 @ 07:36:05
Author: fyan
Revision: 139948
addpkg: python-exam 0.10.5-1
Added:
python-exam/
python-exam/repos/
python-exam/trunk/
python-exam/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Added: python-exam/trunk/PKGBUILD
===================================================================
--- python-exam/trunk/PKGBUILD (rev 0)
+++ python-exam/trunk/PKGBUILD 2015-09-12 05:36:05 UTC (rev 139948)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pypiname=exam
+pkgbase=python-exam
+pkgname=('python-exam' 'python2-exam')
+pkgver=0.10.5
+pkgrel=1
+pkgdesc="Helpers for better testing"
+arch=('any')
+url="https://pypi.python.org/pypi/exam"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-mock' 'python2-mock' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/Fluxx/exam.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a exam{,-py2}
+}
+
+build() {
+ cd "$srcdir/exam"
+ python setup.py build
+
+ cd "$srcdir/exam-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/exam"
+ python setup.py test
+
+ cd "$srcdir/exam-py2"
+ python2 setup.py test
+}
+
+package_python-exam() {
+ depends=('python-mock')
+
+ cd "$srcdir/$_pypiname"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-exam() {
+ depends=('python2-mock')
+
+ cd "$srcdir/$_pypiname-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
Property changes on: python-exam/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list