From a89b9a550a8f208e03d36b526b903abb838efdea Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 1 Jun 2023 19:50:12 +0300 Subject: [PATCH] dev-python/requests-toolbelt: enable py3.12 - add missing test dep on trustme Signed-off-by: Arthur Zamarin --- .../requests-toolbelt/requests-toolbelt-1.0.0.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-python/requests-toolbelt/requests-toolbelt-1.0.0.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-1.0.0.ebuild index e7aefb234fe69..1ffed1c077490 100644 --- a/dev-python/requests-toolbelt/requests-toolbelt-1.0.0.ebuild +++ b/dev-python/requests-toolbelt/requests-toolbelt-1.0.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit distutils-r1 @@ -34,6 +34,7 @@ BDEPEND=" test-rust? ( dev-python/cryptography[${PYTHON_USEDEP}] dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] ) ) " @@ -48,11 +49,15 @@ python_test() { tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_no_content_length_header tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_read_file tests/test_multipart_encoder.py::TestMultipartEncoder::test_reads_file_from_url_wrapper + # tests themself are broken with newer urllib3 + tests/test_dump.py::TestDumpRealResponses::test_dump_{all,response} + tests/test_sessions.py::TestBasedSession::test_{prepared_,}request_{with,override}_base ) local EPYTEST_IGNORE=() if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]" || - ! has_version "dev-python/pyopenssl[${PYTHON_USEDEP}]" + ! has_version "dev-python/pyopenssl[${PYTHON_USEDEP}]" || + ! has_version "dev-python/trustme[${PYTHON_USEDEP}]" then EPYTEST_IGNORE+=( tests/test_x509_adapter.py