1 |
commit: 3ceace4184d6cecb81c0ed7c4a9b6c246a6c6768 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 17 20:36:27 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 17 20:36:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ceace41 |
7 |
|
8 |
dev-python/jupyter_console: Increase test timeout to 5 min |
9 |
|
10 |
Closes: https://bugs.gentoo.org/734564 |
11 |
Package-Manager: Portage-3.0.3, Repoman-3.0.0 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
.../jupyter_console-6.1.0-increase-test-timeout.patch | 15 +++++++++++++++ |
15 |
.../jupyter_console/jupyter_console-6.1.0-r1.ebuild | 12 ++++++------ |
16 |
2 files changed, 21 insertions(+), 6 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch b/dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..684ecfc0a84 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch |
23 |
@@ -0,0 +1,15 @@ |
24 |
+Very slow CIs take longer on this test |
25 |
+ |
26 |
+--- a/jupyter_console/tests/test_console.py |
27 |
++++ b/jupyter_console/tests/test_console.py |
28 |
+@@ -65,8 +65,8 @@ |
29 |
+ except IOError: |
30 |
+ raise SkipTest("Couldn't find command %s" % cmd) |
31 |
+ |
32 |
+- # timeout after one minute |
33 |
+- t = 60 |
34 |
++ # timeout after 5 minutes |
35 |
++ t = 300 |
36 |
+ idx = p.expect(r'In \[\d+\]', timeout=t) |
37 |
+ return p, pexpect, t |
38 |
+ |
39 |
|
40 |
diff --git a/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild b/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild |
41 |
index a17d1256538..f4844cb2c7c 100644 |
42 |
--- a/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild |
43 |
+++ b/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild |
44 |
@@ -20,27 +20,27 @@ RDEPEND=" |
45 |
dev-python/ipykernel[${PYTHON_USEDEP}] |
46 |
dev-python/jupyter_client[${PYTHON_USEDEP}] |
47 |
<dev-python/prompt_toolkit-3.1.0[${PYTHON_USEDEP}] |
48 |
- dev-python/pygments[${PYTHON_USEDEP}] |
49 |
- " |
50 |
+ dev-python/pygments[${PYTHON_USEDEP}]" |
51 |
# util-linux provides script(1) |
52 |
BDEPEND=" |
53 |
test? ( |
54 |
dev-python/pexpect[${PYTHON_USEDEP}] |
55 |
sys-apps/util-linux |
56 |
- ) |
57 |
- " |
58 |
+ )" |
59 |
|
60 |
distutils_enable_sphinx docs |
61 |
distutils_enable_tests nose |
62 |
|
63 |
PATCHES=( |
64 |
"${FILESDIR}"/${P}-py39.patch |
65 |
+ "${FILESDIR}"/${P}-increase-test-timeout.patch |
66 |
) |
67 |
|
68 |
-src_prepare() { |
69 |
+python_prepare_all() { |
70 |
# use setuptools unconditionally |
71 |
sed -i -e 's:distutils\.core:setuptools:' setup.py || die |
72 |
- distutils-r1_src_prepare |
73 |
+ |
74 |
+ distutils-r1_python_prepare_all |
75 |
} |
76 |
|
77 |
python_test() { |