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

Felix Yan fyan at archlinux.org
Sun Sep 20 03:40:41 UTC 2015


    Date: Sunday, September 20, 2015 @ 05:40:40
  Author: fyan
Revision: 141162

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-xdist/repos/community-staging-any/PKGBUILD (from rev 141161, python-pytest-xdist/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-20 03:40:40 UTC (rev 141162)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-xdist
+pkgname=('python-pytest-xdist' 'python2-pytest-xdist')
+_pypiname=pytest-xdist
+pkgver=1.13.1
+pkgrel=2
+pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes'
+arch=('any')
+license=('MIT')
+url='https://bitbucket.org/pytest-dev/pytest-xdist'
+makedepends=('python-pytest' 'python2-pytest' 'python-setuptools_scm' 'python2-setuptools_scm' 'python-execnet' 'python2-execnet' 'mercurial')
+source=("hg+https://bitbucket.org/pytest-dev/pytest-xdist#tag=v$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 || warning "Tests failed"
+
+  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"
+}
+
+package_python-pytest-xdist() {
+  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-xdist() {
+  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