commit:     3f6e998e05085cb4913bfc88de52d01921fe104e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 14 10:02:22 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 14 10:04:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f6e998e

dev-python/requests: Enable py3.13

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

 dev-python/requests/requests-2.31.0.ebuild | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/dev-python/requests/requests-2.31.0.ebuild 
b/dev-python/requests/requests-2.31.0.ebuild
index 84aead8c6d19..957677723e0d 100644
--- a/dev-python/requests/requests-2.31.0.ebuild
+++ b/dev-python/requests/requests-2.31.0.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # please keep this ebuild at EAPI 8 -- sys-apps/portage dep
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 pypi
@@ -64,12 +64,17 @@ python_test() {
                
tests/test_requests.py::TestRequests::test_cookie_removed_on_expire
                
tests/test_requests.py::TestPreparingURLs::test_redirecting_to_bad_url
        )
-       if [[ ${EPYTHON} == python3.12 ]]; then
-               EPYTEST_DESELECT+=(
-                       # different repr()
-                       requests/utils.py::requests.utils.from_key_val_list
-               )
-       fi
+
+       case ${EPYTHON} in
+               python3.13)
+                       ;&
+               python3.12)
+                       EPYTEST_DESELECT+=(
+                               # different repr()
+                               
requests/utils.py::requests.utils.from_key_val_list
+                       )
+                       ;;
+       esac
 
        if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then
                EPYTEST_DESELECT+=(

Reply via email to