[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Wed Sep 9 09:34:01 UTC 2015


    Date: Wednesday, September 9, 2015 @ 11:34:01
  Author: fyan
Revision: 139671

addpkg: python-pytest-cache 1.0-1

Added:
  python-pytest-cache/
  python-pytest-cache/repos/
  python-pytest-cache/trunk/
  python-pytest-cache/trunk/PKGBUILD

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

Added: python-pytest-cache/trunk/PKGBUILD
===================================================================
--- python-pytest-cache/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-cache/trunk/PKGBUILD	2015-09-09 09:34:01 UTC (rev 139671)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-cache
+pkgname=('python-pytest-cache' 'python2-pytest-cache')
+_pypiname=pytest-cache
+pkgver=1.0
+pkgrel=1
+pkgdesc='pytest plugin with mechanisms for caching across test runs'
+arch=('any')
+license=('MIT')
+url='http://bitbucket.org/hpk42/pytest-cache/'
+makedepends=('python-pytest' 'python2-pytest' 'python-execnet' 'python2-execnet' 'mercurial')
+source=("hg+https://bitbucket.org/hpk42/pytest-cache#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a "${srcdir}/${_pypiname}"{,-py2}
+}
+
+build() {
+  cd "$srcdir/$_pypiname"
+  python setup.py build
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir/$_pypiname"
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.4/site-packages:$PYTHONPATH" py.test
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-pytest-cache() {
+  depends=('python-pytest' 'python-execnet')
+
+  cd "$srcdir/$_pypiname"
+  python setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pytest-cache() {
+  depends=('python2-pytest' 'python2-execnet')
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+# vim:set ts=2 sw=2 et:


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



More information about the arch-commits mailing list