[arch-commits] Commit in python-testfixtures/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jul 14 03:22:19 UTC 2018
Date: Saturday, July 14, 2018 @ 03:22:19
Author: felixonmars
Revision: 358857
archrelease: copy trunk to community-staging-any
Added:
python-testfixtures/repos/community-staging-any/
python-testfixtures/repos/community-staging-any/PKGBUILD
(from rev 358856, python-testfixtures/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-testfixtures/repos/community-staging-any/PKGBUILD (from rev 358856, python-testfixtures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-14 03:22:19 UTC (rev 358857)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-testfixtures
+pkgname=('python-testfixtures' 'python2-testfixtures')
+pkgver=6.2.0
+pkgrel=2
+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')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
+ 'python-zope-component' 'python2-zope-component' 'python-sybil' 'python2-sybil'
+ 'python-pytest-django' 'python2-pytest-django' 'python-django' 'python2-django')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz")
+sha512sums=('6623092e981bcbf5b97e6274a279ce5306e8194a38334ea102f4d0ba0a2bb9c05f2aaa5cc43ded0c6862a54b589634fbbcbf6f6d151987047a3409181fba07ab')
+
+prepare() {
+ cp -a testfixtures-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/testfixtures-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/testfixtures-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/testfixtures-$pkgver
+ python setup.py pytest --addopts "--ignore=build" || warning "https://github.com/Simplistix/testfixtures/issues/85"
+
+ cd "$srcdir"/testfixtures-$pkgver-py2
+ python2 setup.py pytest --addopts "--ignore=build"
+}
+
+package_python-testfixtures() {
+ depends=('python')
+
+ cd testfixtures-$pkgver
+ 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-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
More information about the arch-commits
mailing list