mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/requests: Bump to 2.34.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST requests-2.33.1.tar.gz 134120 BLAKE2B 290c77a0f0d90d04638be623f9a3295590286
|
||||
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
|
||||
DIST requests-2.34.1.tar.gz 142783 BLAKE2B 868efc2e60868d71437b007fc7bab44b344e573ed94a9dd551dd7d675924de581aa9e940ced50f60305c944b38c5be89ef2832904ea19ce2f36b994c70be8093 SHA512 1e734caa69e99c120cfff2bd5aade24feaa0000684f5499fcad94ae246aa68720724ab7acbdd611df14ca6d20f705c906fa27b808f6cf6b97fc325e41abb4dae
|
||||
DIST requests-2.34.1.tar.gz.provenance 9503 BLAKE2B cffe5ceda2925e220b2af586bcc8363ad0ace0cb045e5a40d7a620ab8c4a43ab600c82d3579d7c6ef52eec9521c938c9fed5e823c5dba0089de09a70355f082e SHA512 ea1ec91731c4e70fa348b5acbcc88a9e9d0b46058e74d771565ad99704c4f48d8c7f511d94c3ff59ccd43c12d4a3014f8bb7c3cdb8610f7610322aef18940f40
|
||||
|
||||
75
dev-python/requests/requests-2.34.1.ebuild
Normal file
75
dev-python/requests/requests-2.34.1.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user