[arch-commits] Commit in python-pytest-xdist/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 02:46:00 UTC 2016
Date: Sunday, December 25, 2016 @ 02:45:59
Author: felixonmars
Revision: 201800
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 201799, python-pytest-xdist/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-pytest-xdist/repos/community-staging-any/PKGBUILD (from rev 201799, python-pytest-xdist/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 02:45:59 UTC (rev 201800)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-xdist
+pkgname=('python-pytest-xdist' 'python2-pytest-xdist')
+pkgver=1.15.0
+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' 'git')
+source=("git+https://github.com/pytest-dev/pytest-xdist#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a pytest-xdist{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pytest-xdist
+ python setup.py build
+
+ cd "$srcdir"/pytest-xdist-py2
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-xdist
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test
+
+ cd "$srcdir"/pytest-xdist-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-xdist() {
+ depends=('python-pytest' 'python-execnet')
+
+ cd "$srcdir/pytest-xdist"
+ 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/pytest-xdist-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