[arch-commits] Commit in python-fixtures/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Dec 24 16:33:35 UTC 2016


    Date: Saturday, December 24, 2016 @ 16:33:34
  Author: felixonmars
Revision: 201559

archrelease: copy trunk to community-staging-any

Added:
  python-fixtures/repos/community-staging-any/
  python-fixtures/repos/community-staging-any/PKGBUILD
    (from rev 201558, python-fixtures/trunk/PKGBUILD)

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

Copied: python-fixtures/repos/community-staging-any/PKGBUILD (from rev 201558, python-fixtures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 16:33:34 UTC (rev 201559)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fixtures
+pkgname=('python-fixtures' 'python2-fixtures')
+pkgver=3.0.0
+pkgrel=2
+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.io/packages/source/f/fixtures/fixtures-$pkgver.tar.gz")
+sha512sums=('e52ba864c42d15a8baa60583761006b2dd78e3cd5f3f043f5702346aef428b933d62e8fa5889b7cb4196e4072acc5df3b7ffa39702a1b782887bdc109299b695')
+
+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.test_suite
+
+  cd "$srcdir"/fixtures-$pkgver-py2
+  python2 -m testtools.run fixtures.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
+}



More information about the arch-commits mailing list