[arch-commits] Commit in python-doublex/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 10 02:11:46 UTC 2018
Date: Tuesday, July 10, 2018 @ 02:11:46
Author: felixonmars
Revision: 355944
archrelease: copy trunk to community-staging-any
Added:
python-doublex/repos/community-staging-any/
python-doublex/repos/community-staging-any/PKGBUILD
(from rev 355943, python-doublex/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-doublex/repos/community-staging-any/PKGBUILD (from rev 355943, python-doublex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-10 02:11:46 UTC (rev 355944)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-doublex
+pkgname=('python-doublex' 'python2-doublex')
+pkgver=1.8.4
+pkgrel=3
+pkgdesc="Powerful test doubles framework for Python"
+arch=('any')
+license=('GPL')
+url="https://github.com/davidvilla/python-doublex"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyhamcrest' 'python2-pyhamcrest' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/davidvilla/python-doublex.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a python-doublex{,-py2}
+}
+
+build() {
+ cd "$srcdir"/python-doublex
+ python setup.py build
+
+ cd "$srcdir"/python-doublex-py2
+ python2 setup.py build
+}
+
+check() { (
+ cd "$srcdir"/python-doublex
+ python setup.py test
+
+ cd "$srcdir"/python-doublex-py2
+ python2 setup.py test
+ ) || warning "Tests failed as expected"
+}
+
+package_python-doublex() {
+ depends=('python-pyhamcrest')
+
+ cd python-doublex
+ python setup.py install --root="$pkgdir" --optimize=1
+ rm "$pkgdir"/usr/README.rst
+}
+
+package_python2-doublex() {
+ depends=('python2-pyhamcrest')
+
+ cd python-doublex-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ rm "$pkgdir"/usr/README.rst
+}
More information about the arch-commits
mailing list