mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/urllib3: Bump to 2.6.3
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.2.tar.gz 432930 BLAKE2B cc03c2802636dd4f08d4a131327543885f718bd1f1309307f0c3f2e85118d521573a56961e51ff0f937b605c6aa4ef14f2566c943d255c232051aaed3d624f2e SHA512 6a12cd56ac3a437e3f7213ea0eb0456a71ac85e373df5c4b7dc52098ee0c181256d87bc17b1fe1a734d97f8d01589858178ea9b8bacddc46601de9e32f32cd23
|
||||
DIST urllib3-2.6.2.tar.gz.provenance 9201 BLAKE2B 4cf06f44128057061dbbf5891bd224f0c730593002db2e6a0efa6b00790a79e6537402596c45b17230e0a90a33ca03dc32842cb849b87bfd32f03043dd4278f6 SHA512 17e0eab2f8ed1af90e61f9dd6335bdde19c7493746a9ae065e0faeb91e0976a43213f49d78c72933b0d61d7727c7774c323c73f19324cf12dfddf4fb3f58c7d9
|
||||
DIST urllib3-2.6.3.tar.gz 435556 BLAKE2B 9e8cd91390da4ba0b71aa357735c25cd59f1509293a71d5c382a1e9b973c10158f0774b4da9e9dcf13932bdaeddff07ea67242bb92a981855e5d7afec153d629 SHA512 663c83a78908dac9bb05c7ac833183c2fdc2969d0662d21dd8751ba13c51880ee264f7804760f33ebdabfd1c1f04a5d44171a420396de6ae582f9789801b141c
|
||||
DIST urllib3-2.6.3.tar.gz.provenance 9346 BLAKE2B 2b2cd838678933a5faa513e6974627f073826107d293e09354508f651c536bb63fe065406e1d8b845b933ee5db97b9e5a50ddb0417c52accab6e5367451bb507 SHA512 bb734fa663a6ff50bda97d2956825ef8eae3b0959f045f15f8b816881677eaa17eea8d832926fc664ee9398c33731d3917814617b32dfb7f40776cb6e69cd408
|
||||
|
||||
107
dev-python/urllib3/urllib3-2.6.3.ebuild
Normal file
107
dev-python/urllib3/urllib3-2.6.3.ebuild
Normal file
@@ -0,0 +1,107 @@
|
||||
# Copyright 1999-2026 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 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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