summaryrefslogtreecommitdiff
path: root/dev-python/pytest-xdist
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pytest-xdist
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pytest-xdist')
-rw-r--r--dev-python/pytest-xdist/Manifest8
-rw-r--r--dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch27
-rw-r--r--dev-python/pytest-xdist/metadata.xml13
-rw-r--r--dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild49
-rw-r--r--dev-python/pytest-xdist/pytest-xdist-1.20.1.ebuild33
-rw-r--r--dev-python/pytest-xdist/pytest-xdist-1.22.2.ebuild40
6 files changed, 170 insertions, 0 deletions
diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest
new file mode 100644
index 000000000000..de0375d081ae
--- /dev/null
+++ b/dev-python/pytest-xdist/Manifest
@@ -0,0 +1,8 @@
+AUX 1.15.0-test_manytests_to_one_import_error.patch 991 BLAKE2B 1562721b00b0b55102e06aac0be8c2d8b0a500c5ff9e7433fa75330be63a3ee9128458e7ee55429c173ba425932552e8c001c23c71c1788ecc4c1865363495ec SHA512 f46dcc913e408d1af425cc4d444d16d6585062d4debee08164039d3b35020c6c4b3af52c43484ecf32330d0107397d31030ab930965415e0ede6e22449b7d59c
+DIST pytest-xdist-1.15.0.tar.gz 87799 BLAKE2B 6990137c02f70a4ce466aeb7692cdc66adce09d475ddf31b7997abdeb54e148770fc74ee872e0f86719749705bb28ca7e56181b58f3906326c99d6051bd46fe6 SHA512 6429bd0c85024a2dcb453e4264f06d4a548637c4dcdeabf73d2b78a112ace70ff61cf0849a4845cc70a7650d10a99e5fe1087d3b7dba4b941ec0a771fc9338ed
+DIST pytest-xdist-1.20.1.tar.gz 57076 BLAKE2B efac9a0d96b2d4e28b078a7a88ba8df197fc122683d25577cc596f840977f4c116b8c7df1c397e03a50edc400265bae4a8b3900c22da388d0662a71858d7f4ec SHA512 f36e02062e946993bfb9bfaca5aa14c138817f1ad8a8013c5a64b416e91abbfb02502a371c4507c4babb15ac54aca2dce5af4ffe72ed0aa167f670bddabd4b3c
+DIST pytest-xdist-1.22.2.tar.gz 57866 BLAKE2B 356f9dccb7d970e6073dc724233013503939d92072c3fab47626e9ed36778ab73499a990a6f50271ae93b82891a09be811843907c18ae64bf93f76510338c29b SHA512 69a0a233fe52ead13cadd46c134c67e4d0fdcd2a77929aea3da2530cd54c283d46c6d416a1450016ba7e9127b30bd85add99b562d9ec0a49bbe1c08b7828df68
+EBUILD pytest-xdist-1.15.0.ebuild 1233 BLAKE2B c3e1f13ccf7cd4569618238f728ad47f0a1c2dbb9ab29b446ad95ca64dee015328251a706ad4bde3005849e0b1ab6359bb857f9da55a425215251b0c0f3f8fc2 SHA512 e5b59c895849f8099c171595e7bb6eb30fb640d1bc01939b4f7c2640c01bf8cdcbf7f92335682f2b3cd3fcd03cb489f073cfefc4abdaa07ccc32eaa57f87cf04
+EBUILD pytest-xdist-1.20.1.ebuild 921 BLAKE2B 6735a921804434a81a91ba2a8de8410864e2a106fb0a9c0afcb059fb7fb1908b4ec191a9d953616fe20438c5f7e8c7a70cd7e7e5a388ada558dd8a5cc141d193 SHA512 d462c38e44db9a5f6272ca1c00b51b90d0d1ba372b44079f07bfaa66bb81063001fd9c43c6db94255110ced87adb541031e33b5179623c49ad4924fbec45e920
+EBUILD pytest-xdist-1.22.2.ebuild 1104 BLAKE2B 7bf7a0afd2473586dceacd6532f91e5c001f70cdfd91732363bf67e48ae273b65a38f9044b7c2dfa9d7c8808dbc97f00f42ffe65ff0ca33fb65463813bcedb15 SHA512 5f39700f85d36cf9bf6c39ea6b337c482c1ef283677e9fdf30193762be3bb643b88d87a97095f839f9aad363308a2af195b31d5a49e8304cad41e49897ebde11
+MISC metadata.xml 429 BLAKE2B d1c317fa9cb06da79389adbd0d8941511127f1632aa0b5402df24827c526b634e9bfdc822c9f6dbd83a527bf3c9fc4418fffc1dd23b50812d566ff1681508fb1 SHA512 f25800e22c2d0c60991a0544f69e253c5751affd7ba178fdb6fda167baed0b9756bfba1fd850908d9ed05c5cf2091848d91593eec7346d00462cfb54aa1864ae
diff --git a/dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch b/dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch
new file mode 100644
index 000000000000..9fb56f419ceb
--- /dev/null
+++ b/dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch
@@ -0,0 +1,27 @@
+From e5d80645347fc7e67efdceb97df8e95d140b283d Mon Sep 17 00:00:00 2001
+From: Bruno Oliveira <nicoddemus@gmail.com>
+Date: Mon, 5 Dec 2016 19:59:19 -0200
+Subject: [PATCH] Test using pytest 3.0
+
+Fix #99
+---
+ .travis.yml | 42 ++++++++++++++++++++++--------------------
+ appveyor.yml | 23 +++++++++++++++++++++++
+ setup.py | 2 +-
+ testing/acceptance_test.py | 2 +-
+ tox.ini | 7 +++----
+ 5 files changed, 50 insertions(+), 26 deletions(-)
+
+diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
+index 21dfd71..2bb7bb1 100644
+--- a/testing/acceptance_test.py
++++ b/testing/acceptance_test.py
+@@ -62,7 +62,7 @@ def test_import():
+ pass
+ """)
+ result = testdir.runpytest(p1, '--tx=popen', '--tx=popen')
+- assert result.ret == 1
++ assert result.ret in (1, 2)
+ result.stdout.fnmatch_lines([
+ "E ImportError: *__import_of_missing_module*",
+ ])
diff --git a/dev-python/pytest-xdist/metadata.xml b/dev-python/pytest-xdist/metadata.xml
new file mode 100644
index 000000000000..c1976c171423
--- /dev/null
+++ b/dev-python/pytest-xdist/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">pxml</remote-id>
+ <remote-id type="github">metagriffin/pxml</remote-id>
+ <remote-id type="bitbucket">pytest-dev/pytest-xdist</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild
new file mode 100644
index 000000000000..48686f111781
--- /dev/null
+++ b/dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Distributed testing and loop-on-failing modes"
+HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/execnet-1.1[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}]
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pyflakes[${PYTHON_USEDEP}]
+ dev-python/readme[${PYTHON_USEDEP}]
+ )
+"
+
+# Optional test dep:
+# dev-python/pexpect[${PYTHON_USEDEP}]
+
+PATCHES=(
+ "${FILESDIR}"/1.15.0-test_manytests_to_one_import_error.patch
+)
+
+python_prepare_all() {
+ # pexpect fail
+ sed -i -e 's/test_xfail_passes/_&/' testing/test_looponfail.py
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ distutils_install_for_testing
+ py.test -vv || die "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/pytest-xdist/pytest-xdist-1.20.1.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.20.1.ebuild
new file mode 100644
index 000000000000..f2e4b6fb85ee
--- /dev/null
+++ b/dev-python/pytest-xdist/pytest-xdist-1.20.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Distributed testing and loop-on-failing modes"
+HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/execnet-1.1[${PYTHON_USEDEP}]
+ >=dev-python/pytest-3.0.0[${PYTHON_USEDEP}]
+ dev-python/pytest-forked[${PYTHON_USEDEP}]
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+"
+
+python_test() {
+ distutils_install_for_testing
+ py.test -vv || die "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/pytest-xdist/pytest-xdist-1.22.2.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.22.2.ebuild
new file mode 100644
index 000000000000..6a47c7fc1e4b
--- /dev/null
+++ b/dev-python/pytest-xdist/pytest-xdist-1.22.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Distributed testing and loop-on-failing modes"
+HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/execnet-1.1[${PYTHON_USEDEP}]
+ >=dev-python/pytest-3.4.2[${PYTHON_USEDEP}]
+ dev-python/pytest-forked[${PYTHON_USEDEP}]
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+"
+
+python_prepare_all() {
+ # TODO: figure out why it fails
+ sed -i -e 's:test_keyboard_interrupt_dist:_&:' testing/acceptance_test.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ distutils_install_for_testing
+ py.test -vv testing || die "Tests failed under ${EPYTHON}"
+}