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

Felix Yan fyan at archlinux.org
Mon Sep 21 03:02:39 UTC 2015


    Date: Monday, September 21, 2015 @ 05:02:38
  Author: fyan
Revision: 141332

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-cache/repos/community-staging-any/
  python-pytest-cache/repos/community-staging-any/PKGBUILD
    (from rev 141331, python-pytest-cache/trunk/PKGBUILD)

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

Copied: python-pytest-cache/repos/community-staging-any/PKGBUILD (from rev 141331, python-pytest-cache/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-21 03:02:38 UTC (rev 141332)
@@ -0,0 +1,59 @@
+# $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=2
+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.5/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
+  ) || warning "Tests failed"
+  # Skipping tests as it's incompatibility with pytest 2.8.0, not python 3.5.
+  # https://bitbucket.org/hpk42/pytest-cache/issues/11/tests-failed-with-pytest-280
+}
+
+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:



More information about the arch-commits mailing list