[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Nov 3 08:34:38 UTC 2015


    Date: Tuesday, November 3, 2015 @ 09:34:38
  Author: fyan
Revision: 145755

addpkg: python-fixtures 1.4.0-1

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

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

Added: python-fixtures/trunk/PKGBUILD
===================================================================
--- python-fixtures/trunk/PKGBUILD	                        (rev 0)
+++ python-fixtures/trunk/PKGBUILD	2015-11-03 08:34:38 UTC (rev 145755)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fixtures
+pkgname=('python-fixtures' 'python2-fixtures')
+pkgver=1.4.0
+pkgrel=1
+pkgdesc="Fixtures, reusable state for writing clean tests and more"
+arch=('any')
+license=('Apache')
+url="https://launchpad.net/python-fixtures"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-six' 'python2-six' 'python-testtools' 'python2-testtools')
+checkdepends=('python-subunit' 'python2-subunit' 'python-mock' 'python2-mock')
+source=("https://pypi.python.org/packages/source/f/fixtures/fixtures-$pkgver.tar.gz")
+sha512sums=('62e314821ea507ab5c1465fb626c29c91430b36ae4670fd05a3aa7180452989c393d35ab623da3646b25cf671a84861ab68d9529d04ae759c0d38efca7c7d8cf')
+
+prepare() {
+  cp -a fixtures-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/fixtures-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/fixtures-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/fixtures-$pkgver"
+  python -m testtools.run fixtures.tests.test_suite
+
+  cd "$srcdir/fixtures-$pkgver-py2"
+  python2 -m testtools.run fixtures.tests.test_suite
+}
+
+package_python-fixtures() {
+  depends=('python-pbr' 'python-six' 'python-testtools')
+
+  cd fixtures-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-fixtures() {
+  depends=('python2-pbr' 'python2-six' 'python2-testtools')
+
+  cd fixtures-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}


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



More information about the arch-commits mailing list