Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-xdist/, dev-python/pytest-xdist/files/
Date: Sun, 03 May 2020 10:24:27
Message-Id: 1588501447.99e617111d03109a0b78274807dfc070ffcc6eef.mgorny@gentoo
1 commit: 99e617111d03109a0b78274807dfc070ffcc6eef
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 06:39:13 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 10:24:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99e61711
7
8 dev-python/pytest-xdist: Bump to 1.32.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-xdist/Manifest | 1 +
13 .../files/pytest-xdist-1.32.0-timeout.patch | 50 ++++++++++++++++++++++
14 dev-python/pytest-xdist/pytest-xdist-1.32.0.ebuild | 43 +++++++++++++++++++
15 3 files changed, 94 insertions(+)
16
17 diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest
18 index 98896ef5ab8..1b1e4f01f85 100644
19 --- a/dev-python/pytest-xdist/Manifest
20 +++ b/dev-python/pytest-xdist/Manifest
21 @@ -2,3 +2,4 @@ DIST pytest-xdist-1.23.2.tar.gz 59932 BLAKE2B f2cf73914cf095217fb8b472f5e5f79184
22 DIST pytest-xdist-1.28.0.tar.gz 61486 BLAKE2B ef8157079ea890342cd566f327588148fa898a3404e3edcffb60ba8ba37d9473b4c2a47fc737f7bb074042c6aadd737ac51f348ce79a718eb446036016cd5e23 SHA512 89b8885103a944ae72535de40028db052f76631ade6f969489d3dc3a1a61a3233df6655d0905d9f5253f23740a15aea824b460c680e79c16f275b31cb2abd6ad
23 DIST pytest-xdist-1.30.0.tar.gz 62286 BLAKE2B 8d6a79c123bcee81751f2dd3a87e1d8effc82ff48a701c8cf0014292e5df575136d25847794c8e9fc94eb88a37cb42c659a142212faf30b0d1a0b1f9f948d2d6 SHA512 978b67df2366d916db62af21f2c610ac5d2de43cecf3260ec9bf52f904098514c3052ce8ca2195c17addd4012f3c5d38ce8a701d26c8158142a821b0d0cf9122
24 DIST pytest-xdist-1.31.0.tar.gz 66133 BLAKE2B 79fe5f3bcad3421c1c751ffe6e09f0da42d4ff7c0016cb421ffabcab167028ec41ccfb02bbb275564cd74b13ade8d6e79bbb70b34995f3bc9000604a1533df9a SHA512 b7960d20295232b251c8ddcc5a3b9d6e7b761d577ba11c2647b4b4b410ee5c05998cf57fa57208561eb3ea7c4914db1fd446173794589d8c8e8e79ff8e0ad3aa
25 +DIST pytest-xdist-1.32.0.tar.gz 67733 BLAKE2B da0ce4e43dc8752e4329ddcbc13a5f55f5bc120c13f39bb01916770d2dc1864197fd91f92bc55ba27cd74b0d837ac2d310980874cdf54761339b2cd654dd6e74 SHA512 f159b4653efb4afeff4124df484670d3c672e1014712f948390b25efc53096f8237258c83a5f1a9e688c52b4a756291cb731d37fdfa800707f556550a19cb0e8
26
27 diff --git a/dev-python/pytest-xdist/files/pytest-xdist-1.32.0-timeout.patch b/dev-python/pytest-xdist/files/pytest-xdist-1.32.0-timeout.patch
28 new file mode 100644
29 index 00000000000..52fdc681dfb
30 --- /dev/null
31 +++ b/dev-python/pytest-xdist/files/pytest-xdist-1.32.0-timeout.patch
32 @@ -0,0 +1,50 @@
33 +From 27519e8018ee199219ab223e0b31b76b4e950a2a Mon Sep 17 00:00:00 2001
34 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
35 +Date: Sun, 3 May 2020 11:23:33 +0200
36 +Subject: [PATCH] Increase pexpect timeouts to prevent tests from failing
37 +
38 +---
39 + testing/acceptance_test.py | 2 +-
40 + testing/test_looponfail.py | 6 ++++--
41 + 2 files changed, 5 insertions(+), 3 deletions(-)
42 +
43 +diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
44 +index b6a4a94..a089baa 100644
45 +--- a/testing/acceptance_test.py
46 ++++ b/testing/acceptance_test.py
47 +@@ -332,7 +332,7 @@ class TestDistribution:
48 + time.sleep(10)
49 + """
50 + )
51 +- child = testdir.spawn_pytest("-n1 -v")
52 ++ child = testdir.spawn_pytest("-n1 -v", expect_timeout=30.0)
53 + child.expect(".*test_sleep.*")
54 + child.kill(2) # keyboard interrupt
55 + child.expect(".*KeyboardInterrupt.*")
56 +diff --git a/testing/test_looponfail.py b/testing/test_looponfail.py
57 +index 94fccd7..a6ebebe 100644
58 +--- a/testing/test_looponfail.py
59 ++++ b/testing/test_looponfail.py
60 +@@ -284,7 +284,8 @@ class TestFunctional:
61 + )
62 + # p = testdir.mkdir("sub").join(p1.basename)
63 + # p1.move(p)
64 +- child = testdir.spawn_pytest("-f %s --traceconfig" % p)
65 ++ child = testdir.spawn_pytest("-f %s --traceconfig" % p,
66 ++ expect_timeout=30.0)
67 + child.expect("def test_one")
68 + child.expect("x == 1")
69 + child.expect("1 failed")
70 +@@ -311,7 +312,8 @@ class TestFunctional:
71 + pass
72 + """
73 + )
74 +- child = testdir.spawn_pytest("-f %s" % p)
75 ++ child = testdir.spawn_pytest("-f %s" % p,
76 ++ expect_timeout=30.0)
77 + child.expect("1 xpass")
78 + # child.expect("### LOOPONFAILING ####")
79 + child.expect("waiting for changes")
80 +--
81 +2.26.2
82 +
83
84 diff --git a/dev-python/pytest-xdist/pytest-xdist-1.32.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.32.0.ebuild
85 new file mode 100644
86 index 00000000000..4d03af9b28d
87 --- /dev/null
88 +++ b/dev-python/pytest-xdist/pytest-xdist-1.32.0.ebuild
89 @@ -0,0 +1,43 @@
90 +# Copyright 1999-2020 Gentoo Authors
91 +# Distributed under the terms of the GNU General Public License v2
92 +
93 +EAPI=7
94 +
95 +DISTUTILS_USE_SETUPTOOLS=rdepend
96 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
97 +
98 +inherit distutils-r1
99 +
100 +DESCRIPTION="Distributed testing and loop-on-failing modes"
101 +HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist"
102 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
103 +
104 +SLOT="0"
105 +LICENSE="MIT"
106 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
107 +IUSE="test"
108 +RESTRICT="!test? ( test )"
109 +
110 +RDEPEND="
111 + dev-python/execnet[${PYTHON_USEDEP}]
112 + >=dev-python/pytest-4.4[${PYTHON_USEDEP}]
113 + dev-python/pytest-forked[${PYTHON_USEDEP}]
114 + dev-python/six[${PYTHON_USEDEP}]
115 +"
116 +
117 +BDEPEND="
118 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
119 + test? (
120 + ${RDEPEND}
121 + dev-python/filelock[${PYTHON_USEDEP}]
122 + )
123 +"
124 +
125 +PATCHES=(
126 + "${FILESDIR}"/pytest-xdist-1.32.0-timeout.patch
127 +)
128 +
129 +python_test() {
130 + distutils_install_for_testing
131 + pytest -vv testing || die "Tests failed under ${EPYTHON}"
132 +}