commit:     1ff14a8839e351ec88f03f61fb155e4fd697ecd0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 09:44:55 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 10 10:06:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ff14a88

dev-python/flaky: Enable py3.11

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/flaky/flaky-3.7.0-r2.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-python/flaky/flaky-3.7.0-r2.ebuild 
b/dev-python/flaky/flaky-3.7.0-r2.ebuild
index 0fc2e88f1e60..b5f07b9b77d0 100644
--- a/dev-python/flaky/flaky-3.7.0-r2.ebuild
+++ b/dev-python/flaky/flaky-3.7.0-r2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
 
 inherit distutils-r1
 
@@ -22,15 +22,21 @@ DEPEND="
        test? (
                dev-python/genty[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
-               dev-python/nose[${PYTHON_USEDEP}]
                dev-python/pytest[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep '
+                       dev-python/nose[${PYTHON_USEDEP}]
+               ' python3_{8..10} pypy3)
        )
 "
 
 python_test() {
-       nosetests --with-flaky --exclude="test_nose_options_example" 
test/test_nose/ || die
        epytest -k 'example and not options' --doctest-modules 
test/test_pytest/ || die
        epytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die
-       nosetests --with-flaky --force-flaky --max-runs 2 
test/test_nose/test_nose_options_example.py || die
        epytest --force-flaky --max-runs 2 
test/test_pytest/test_pytest_options_example.py || die
+
+       # please keep this in sync with python_gen_cond_dep!
+       if has "${EPYTHON}" python3_{8..10} pypy3; then
+               "${EPYTHON}" -m nose --with-flaky 
--exclude="test_nose_options_example" test/test_nose/ || die
+               "${EPYTHON}" -m nose --with-flaky --force-flaky --max-runs 2 
test/test_nose/test_nose_options_example.py || die
+       fi
 }

Reply via email to