[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Thu Feb 4 03:19:58 UTC 2016


    Date: Thursday, February 4, 2016 @ 04:19:58
  Author: fyan
Revision: 160162

addpkg: python-testfixtures 4.8.0-1

Added:
  python-testfixtures/
  python-testfixtures/repos/
  python-testfixtures/trunk/
  python-testfixtures/trunk/PKGBUILD

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

Added: python-testfixtures/trunk/PKGBUILD
===================================================================
--- python-testfixtures/trunk/PKGBUILD	                        (rev 0)
+++ python-testfixtures/trunk/PKGBUILD	2016-02-04 03:19:58 UTC (rev 160162)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-testfixtures
+pkgname=('python-testfixtures' 'python2-testfixtures')
+pkgver=4.8.0
+pkgrel=1
+pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests"
+arch=('any')
+license=('MIT')
+url="https://github.com/Simplistix/testfixtures"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock'
+              'python-manuel' 'python2-manuel' 'python-nose-fixes' 'python2-nose-fixes')
+source=("git+https://github.com/Simplistix/testfixtures.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a testfixtures{,-py2}
+}
+
+build() {
+  cd "$srcdir/testfixtures"
+  python setup.py build
+
+  cd "$srcdir/testfixtures-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/testfixtures"
+  nosetests3
+
+  cd "$srcdir/testfixtures-py2"
+  nosetests2
+}
+
+package_python-testfixtures() {
+  depends=('python')
+
+  cd testfixtures
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 docs/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+}
+
+package_python2-testfixtures() {
+  depends=('python2')
+
+  cd testfixtures-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 docs/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+}


Property changes on: python-testfixtures/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list