mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/urllib3: Bump to 2.6.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST hypercorn-d1719f8c1570cbd8e6a3719ffdb14a4d72880abb.gh.tar.gz 156216 BLAKE2B
|
||||
DIST urllib3-2.5.0.tar.gz 393185 BLAKE2B 3885be1dae81cb63cfd0c52242b8ff342e4fb398816f94b556e929af0328f4063d705f15201005f4247b278420794984277999751170e124c23ac99c6dc881d4 SHA512 f417a2745bc9750da23916690937e5c0dfe0534354f2c1c9f056baf16554a831a28937acca2b1f23941d5b6e87a372f2e074508eaf2c3304fd1014b8afc3295e
|
||||
DIST urllib3-2.6.0.tar.gz 432585 BLAKE2B a630f109dd9b191bd0b5fcbfae03c1f492d8396fdc41c9103c15d537472f55d04d5ece2d5af5ee7a381f0560384afcc8c5232320d8d921d01e2d37093ef0ca28 SHA512 b825663ed9e037763c3c8a049f818330ee9cf0d00ba6f3bd368114ed1feb750e0e6613920cde62443aa05aa84752a2cdfa4f7a6f631801031cb2fbf6736675e3
|
||||
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
|
||||
|
||||
107
dev-python/urllib3/urllib3-2.6.1.ebuild
Normal file
107
dev-python/urllib3/urllib3-2.6.1.ebuild
Normal file
@@ -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 ~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
|
||||
}
|
||||
Reference in New Issue
Block a user