dev-python/requests: Bump to 2.34.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-05-12 07:26:07 +02:00
parent 11c4b2d1dc
commit ce9a59f18a
2 changed files with 77 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST requests-2.33.1.tar.gz 134120 BLAKE2B 290c77a0f0d90d04638be623f9a32955902869f89fd6eb8c2e2c3b15cdeb28455ec331c84bdba16d6aa69cb02d8567514a245280a0adf64f653f29aacb944f44 SHA512 058dc417085f8be99c2ea79fffecce833068d9342c925a8d8bd1b10c171e52fda5d4bdd8ae1a93b05b111e275c29b705ec79ac0c365fb10f6f81c49e6d839483
DIST requests-2.33.1.tar.gz.provenance 9256 BLAKE2B 5257b1e8dac44c85b121e04d9591b73d8e2a95ba8ad7d5a45e954d0d676a44b877da0f800bcf934e843ceaf19522bb81eb616c646ad4ac56ee6c3b7ef74a5913 SHA512 5239edd498ff5c27a92a950b75985da8c59064f7abc04809ab71c54e7f3b8b82a268a291b0431560e5fe70266f0fe5a6151fb804c093a9f99c6a6138ba6b80fb
DIST requests-2.34.0.tar.gz 142436 BLAKE2B 3aa791f8ebc58f6cd0f51883653a6860ba6503071abdd267d3473e6fa9d325aeb3bef46890d4551f946d867482b2396a2328653b08ea4a8e1ef4a7a5a4c7fbbd SHA512 4e3b5c40489b682225667cf46e36058bc22dce6b580e3d01962ea7fa46517e15a775458ebeb970b53fb2f87048f3f09bf09ac599b66c36827622fea7c17e83b6
DIST requests-2.34.0.tar.gz.provenance 9389 BLAKE2B b25418a2b8160ac911e40d74d6f5e5359752ed956c683acb06e6dc90b13eac198cce8f389f9e6a1ed68f5f7a0317e29bb3723fbfc4a71e6bcf08f604adc15d39 SHA512 8b6387f8c81e3b1d160498992af49991e50f9c85f064a9d4b88b2346f9524d5cc6e1f996b2b347a351b9681d51e1ba28cffb8d51c53d7143fdea99943d953ad1

View File

@@ -0,0 +1,75 @@
# 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=setuptools
PYPI_VERIFY_REPO=https://github.com/psf/requests
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 pypi
DESCRIPTION="HTTP library for human beings"
HOMEPAGE="
https://requests.readthedocs.io/
https://github.com/psf/requests/
https://pypi.org/project/requests/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
IUSE="socks5 test-rust"
RDEPEND="
>=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
<dev-python/charset-normalizer-4[${PYTHON_USEDEP}]
<dev-python/idna-4[${PYTHON_USEDEP}]
<dev-python/urllib3-3[${PYTHON_USEDEP}]
socks5? ( >=dev-python/pysocks-1.5.6[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
dev-python/httpbin[${PYTHON_USEDEP}]
>=dev-python/pysocks-1.5.6[${PYTHON_USEDEP}]
test-rust? (
dev-python/trustme[${PYTHON_USEDEP}]
)
)
"
EPYTEST_PLUGINS=( pytest-{httpbin,mock} )
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# remove useless dependency check spam
sed -i -e '/urllib3_version_list =/i\
return' src/requests/__init__.py || die
}
python_test() {
local EPYTEST_DESELECT=(
# Internet (doctests)
requests/__init__.py::requests
requests/api.py::requests.api.request
requests/models.py::requests.models.PreparedRequest
requests/sessions.py::requests.sessions.Session
# require IPv4 interface in 10.* range
tests/test_requests.py::TestTimeout::test_connect_timeout
tests/test_requests.py::TestTimeout::test_total_timeout_connect
)
if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then
EPYTEST_DESELECT+=(
tests/test_requests.py::TestRequests::test_https_warnings
)
fi
epytest
}