diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-14 12:02:22 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-14 12:04:57 +0200 |
commit | 3f6e998e05085cb4913bfc88de52d01921fe104e (patch) | |
tree | 155b81c9d5884bb4df14ab73bfc29c8bbe72cb6f /dev-python/requests | |
parent | dev-python/pytest-httpbin: Enable py3.13 (diff) | |
download | gentoo-3f6e998e05085cb4913bfc88de52d01921fe104e.tar.gz gentoo-3f6e998e05085cb4913bfc88de52d01921fe104e.tar.bz2 gentoo-3f6e998e05085cb4913bfc88de52d01921fe104e.zip |
dev-python/requests: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/requests')
-rw-r--r-- | dev-python/requests/requests-2.31.0.ebuild | 21 |
1 files 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+=( |