commit:     f68fd8eb7efac268c4b68f9a9b0933e124374260
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 12 03:28:37 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec 12 04:37:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f68fd8eb

dev-python/urllib3: Bump to 2.6.2

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

 dev-python/urllib3/Manifest             |   2 +
 dev-python/urllib3/urllib3-2.6.2.ebuild | 107 ++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+)

diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest
index b7db32916685..112aa7b013d4 100644
--- a/dev-python/urllib3/Manifest
+++ b/dev-python/urllib3/Manifest
@@ -4,3 +4,5 @@ DIST urllib3-2.6.0.tar.gz 432585 BLAKE2B 
a630f109dd9b191bd0b5fcbfae03c1f492d8396
 DIST urllib3-2.6.0.tar.gz.provenance 9060 BLAKE2B 
086458bd509d0de661ce4fab4a556884e0eaf77f4df9d34dbefb12865c22282bab24c07410b7fe42417422cc24102cb70c813d4b7a1115a454b3843809751b58
 SHA512 
a95d98157ad594662f598e06cb6bd326a42e58a48d647bf17c08078fddcd6232d81eb9a93d3369aabe52cd20190a1bbd00106a6f3767223e7378fc9e43c077a2
 DIST urllib3-2.6.1.tar.gz 432678 BLAKE2B 
1bedb221a31dc1571f1a334a0a7edd21023282389ee2f137173f03a85aa4e12a17e354e1e06cbd21c67f77909f8032bdabb09f041053b305803bed432d7ad158
 SHA512 
ad35d310734b088ff61db7f959f63b12c6ad2c592a580bbe7633c4a172d3bc0d42081b7ddb92946036d3b72c5295b3224095368af8bf7c1908ccf4f96e4d24b2
 DIST urllib3-2.6.1.tar.gz.provenance 9342 BLAKE2B 
b2d49ce4db1a15bcde9699f10f1bbdf8ca0f0765131c948638084db76c3f7c5d7c3c64c22e012726ce82d4b5029ea2ff8aa05c57fb2e8857ff415e810c0174c6
 SHA512 
93ba88e539617ad5f349bf2a141854d2b3e4a7db2ccaecd1ac1f88ec990cb751c5e20f33496e9c261ca3ac3dec9fc0dbec5627a033d627864a5cf156e9919aaa
+DIST urllib3-2.6.2.tar.gz 432930 BLAKE2B 
cc03c2802636dd4f08d4a131327543885f718bd1f1309307f0c3f2e85118d521573a56961e51ff0f937b605c6aa4ef14f2566c943d255c232051aaed3d624f2e
 SHA512 
6a12cd56ac3a437e3f7213ea0eb0456a71ac85e373df5c4b7dc52098ee0c181256d87bc17b1fe1a734d97f8d01589858178ea9b8bacddc46601de9e32f32cd23
+DIST urllib3-2.6.2.tar.gz.provenance 9201 BLAKE2B 
4cf06f44128057061dbbf5891bd224f0c730593002db2e6a0efa6b00790a79e6537402596c45b17230e0a90a33ca03dc32842cb849b87bfd32f03043dd4278f6
 SHA512 
17e0eab2f8ed1af90e61f9dd6335bdde19c7493746a9ae065e0faeb91e0976a43213f49d78c72933b0d61d7727c7774c323c73f19324cf12dfddf4fb3f58c7d9

diff --git a/dev-python/urllib3/urllib3-2.6.2.ebuild 
b/dev-python/urllib3/urllib3-2.6.2.ebuild
new file mode 100644
index 000000000000..cfe0baa956e8
--- /dev/null
+++ b/dev-python/urllib3/urllib3-2.6.2.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2025 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=hatchling
+PYPI_VERIFY_REPO=https://github.com/urllib3/urllib3
+PYTHON_TESTED=( python3_{11..14} pypy3_11 )
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
+PYTHON_REQ_USE="ssl(+)"
+
+inherit distutils-r1 pypi
+
+# The package has a test dependency on their own hypercorn fork.
+HYPERCORN_COMMIT=d1719f8c1570cbd8e6a3719ffdb14a4d72880abb
+DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and 
more"
+HOMEPAGE="
+       https://github.com/urllib3/urllib3/
+       https://pypi.org/project/urllib3/
+"
+SRC_URI+="
+       test? (
+               
https://github.com/urllib3/hypercorn/archive/${HYPERCORN_COMMIT}.tar.gz
+                       -> hypercorn-${HYPERCORN_COMMIT}.gh.tar.gz
+       )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="brotli http2 test zstd"
+RESTRICT="!test? ( test )"
+
+# [secure] extra is deprecated and slated for removal, we don't need it:
+# https://github.com/urllib3/urllib3/issues/2680
+RDEPEND="
+       >=dev-python/pysocks-1.5.8[${PYTHON_USEDEP}]
+       <dev-python/pysocks-2.0[${PYTHON_USEDEP}]
+       brotli? ( >=dev-python/brotlicffi-1.2.0.0[${PYTHON_USEDEP}] )
+       http2? (
+               <dev-python/h2-5[${PYTHON_USEDEP}]
+               >=dev-python/h2-4[${PYTHON_USEDEP}]
+       )
+       zstd? (
+               $(python_gen_cond_dep '
+                       >=dev-python/backports-zstd-1.0.0[${PYTHON_USEDEP}]
+               ' 3.{11..13})
+       )
+"
+BDEPEND="
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+       test? (
+               $(python_gen_cond_dep "
+                       ${RDEPEND}
+                       dev-python/brotlicffi[\${PYTHON_USEDEP}]
+                       dev-python/freezegun[\${PYTHON_USEDEP}]
+                       dev-python/h2[\${PYTHON_USEDEP}]
+                       dev-python/httpx[\${PYTHON_USEDEP}]
+                       dev-python/pytest[\${PYTHON_USEDEP}]
+                       dev-python/pytest-rerunfailures[\${PYTHON_USEDEP}]
+                       dev-python/pytest-timeout[\${PYTHON_USEDEP}]
+                       dev-python/pytest-xdist[\${PYTHON_USEDEP}]
+                       dev-python/quart[\${PYTHON_USEDEP}]
+                       dev-python/quart-trio[\${PYTHON_USEDEP}]
+                       dev-python/trio[\${PYTHON_USEDEP}]
+                       >=dev-python/tornado-4.2.1[\${PYTHON_USEDEP}]
+                       >=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}]
+               " "${PYTHON_TESTED[@]}")
+               $(python_gen_cond_dep '
+                       >=dev-python/backports-zstd-1.0.0[${PYTHON_USEDEP}]
+               ' 3.{11..13})
+       )
+"
+
+src_prepare() {
+       # upstream considers 0.5 s to be "long" for a timeout
+       # we get tons of test failures on *fast* systems because of that
+       sed -i -e '/LONG_TIMEOUT/s:0.5:5:' test/__init__.py || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       local -x PYTHONPATH=${WORKDIR}/hypercorn-${HYPERCORN_COMMIT}/src
+       local -x CI=1
+       if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
+               einfo "Skipping tests on ${EPYTHON}"
+               return
+       fi
+
+       local EPYTEST_DESELECT=(
+               # TODO: timeouts
+               
test/contrib/test_pyopenssl.py::TestSocketClosing::test_timeout_errors_cause_retries
+               
test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_timeout_errors_cause_retries
+               # TODO
+               
test/contrib/test_pyopenssl.py::TestSocketClosing::test_socket_shutdown_stops_recv
+               
test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_socket_shutdown_stops_recv
+               # hangs randomly
+               
test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_{2,3}::test_http2_probe_blocked_per_thread
+               
test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_{2,3}::test_http2_probe_blocked_per_thread
+       )
+
+       local EPYTEST_PLUGINS=( pytest-timeout )
+       local EPYTEST_RERUNS=10
+       local EPYTEST_XDIST=1
+       epytest --reruns-delay=2
+}

Reply via email to