[arch-commits] Commit in python-exam/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Sep 12 05:36:23 UTC 2015


    Date: Saturday, September 12, 2015 @ 07:36:22
  Author: fyan
Revision: 139949

archrelease: copy trunk to community-any

Added:
  python-exam/repos/community-any/
  python-exam/repos/community-any/PKGBUILD
    (from rev 139948, python-exam/trunk/PKGBUILD)

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

Copied: python-exam/repos/community-any/PKGBUILD (from rev 139948, python-exam/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-09-12 05:36:22 UTC (rev 139949)
@@ -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:



More information about the arch-commits mailing list