commit:     2971e1c16688833f59ad3f782c2cf290dd2ea946
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 16:38:44 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May  9 16:48:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2971e1c1

dev-python/pytest-timeout: Enable py3.13

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

 dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild 
b/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild
index 2d48986cbf02..cd7abe388b7d 100644
--- a/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild
+++ b/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
 
 inherit distutils-r1 pypi
 
@@ -25,7 +25,9 @@ BDEPEND="
        test? (
                dev-python/pexpect[${PYTHON_USEDEP}]
                !hppa? (
-                       dev-python/pytest-cov[${PYTHON_USEDEP}]
+                       $(python_gen_cond_dep '
+                               dev-python/pytest-cov[${PYTHON_USEDEP}]
+                       ' python3_{10..11} pypy3)
                )
        )
 "
@@ -37,7 +39,7 @@ python_test() {
        local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
        local -x PYTEST_PLUGINS=pytest_timeout
 
-       if has_version dev-python/pytest-cov; then
+       if has_version "dev-python/pytest-cov[${PYTHON_USEDEP}]"; then
                PYTEST_PLUGINS+=,pytest_cov.plugin
        else
                EPYTEST_DESELECT+=(

Reply via email to