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/flaky/
Date: Tue, 10 May 2022 10:07:08
Message-Id: 1652177214.1ff14a8839e351ec88f03f61fb155e4fd697ecd0.mgorny@gentoo
1 commit: 1ff14a8839e351ec88f03f61fb155e4fd697ecd0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 09:44:55 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 10:06:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ff14a88
7
8 dev-python/flaky: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/flaky/flaky-3.7.0-r2.ebuild | 14 ++++++++++----
13 1 file changed, 10 insertions(+), 4 deletions(-)
14
15 diff --git a/dev-python/flaky/flaky-3.7.0-r2.ebuild b/dev-python/flaky/flaky-3.7.0-r2.ebuild
16 index 0fc2e88f1e60..b5f07b9b77d0 100644
17 --- a/dev-python/flaky/flaky-3.7.0-r2.ebuild
18 +++ b/dev-python/flaky/flaky-3.7.0-r2.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=setuptools
23 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
24 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
25
26 inherit distutils-r1
27
28 @@ -22,15 +22,21 @@ DEPEND="
29 test? (
30 dev-python/genty[${PYTHON_USEDEP}]
31 dev-python/mock[${PYTHON_USEDEP}]
32 - dev-python/nose[${PYTHON_USEDEP}]
33 dev-python/pytest[${PYTHON_USEDEP}]
34 + $(python_gen_cond_dep '
35 + dev-python/nose[${PYTHON_USEDEP}]
36 + ' python3_{8..10} pypy3)
37 )
38 "
39
40 python_test() {
41 - nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die
42 epytest -k 'example and not options' --doctest-modules test/test_pytest/ || die
43 epytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die
44 - nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die
45 epytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py || die
46 +
47 + # please keep this in sync with python_gen_cond_dep!
48 + if has "${EPYTHON}" python3_{8..10} pypy3; then
49 + "${EPYTHON}" -m nose --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die
50 + "${EPYTHON}" -m nose --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die
51 + fi
52 }