dev-python/requests: Enable py3.12

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-05-29 11:18:49 +02:00
parent 2cc1b4eec1
commit b492b23753

View File

@@ -5,7 +5,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} pypy3 )
PYTHON_COMPAT=( python3_{10..12} pypy3 )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 pypi
@@ -64,6 +64,12 @@ 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
if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then
EPYTEST_DESELECT+=(