diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-28 05:11:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-28 05:11:40 +0100 |
commit | 2099ff9b640e648be67527e29760263a7c6274e5 (patch) | |
tree | 238358af0ba45fd8fcc6cd4679736d6c4f07f851 /dev-python/requests | |
parent | d198e0ebeee70707545d19ee3beb1de70802cc7c (diff) |
gentoo auto-resync : 28:04:2023 - 05:11:40
Diffstat (limited to 'dev-python/requests')
-rw-r--r-- | dev-python/requests/Manifest | 4 | ||||
-rw-r--r-- | dev-python/requests/requests-2.28.2.ebuild | 4 | ||||
-rw-r--r-- | dev-python/requests/requests-2.29.0.ebuild | 75 |
3 files changed, 82 insertions, 1 deletions
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest index c6d7808b600c..d8540a1b7eb9 100644 --- a/dev-python/requests/Manifest +++ b/dev-python/requests/Manifest @@ -1,4 +1,6 @@ AUX requests-2.28.0-drop-dependency-warnings.patch 759 BLAKE2B b2cc24d9d3137ad652ab9d8c14a08dd33af7d3f2968433a0f6cb09dda46ee5c98f428e495e5a565d32a142c22afb439e4604e09d2693b945bcceab0475381700 SHA512 2e486d399c311b81522d390ff9eb601fbc31f3ba64c7c3635aa0aa37e959acdba4f0cd4fd87d5ad51e1c50d83057c2f4ea02d9077702d51bda711730ea82e3ce DIST requests-2.28.2.tar.gz 108206 BLAKE2B fe6c5d78e6abd36b7134c6e424b5a1c4052eba62b55a01b5842f289b94df3af039a5beba71374db563dd52ce42471d5e3650763b9324533ea6ab3bfd8013379b SHA512 3c4ba19a2bb6ba38a4118cf246db3855401869d54ee7ebd9bee40b435420381fb737d4c69768f2bd97914a30d66233c7058cec51aa629af0dff3b04e6f997a3d -EBUILD requests-2.28.2.ebuild 1856 BLAKE2B cdd7147b0610730c3685700548173cbd234fbb7e9650ea4892d1b734ba9b22715a45ca64549c9cdfea4dab82a9553bd5fc045a6ddc94637c6eddc100b48690c1 SHA512 96e513f6b18548eaf913e2c4c06b8246265fae0cd4336fccc63c3f32e1f2d2050b188ef0ee123293203e464263982f70a6156536c92892bb4cefc965e419e2ef +DIST requests-2.29.0.tar.gz 108279 BLAKE2B 34f4f25be325944415cadf17e99f106fb696882667853455f2559748d0cd2562bdefaa0fec2ac3dae6c34ecc4a50e6f91d00fdada27ceb6e0d4232faf7bf77bb SHA512 22c7c9e6ae44abe60cf7cc2108d42d9a0952ae317936995f379155d24013c24a2c654469a781a61b2ae6488429e337d31b565a91f1266eb1c038a4c8a9069642 +EBUILD requests-2.28.2.ebuild 2080 BLAKE2B a1577a8ac6f1c6a092ffabb4546a25445caa343f4d5fdaf8909cdcd45b765b14d448f623ad785abf1984fcbfadb40c4cde9444812ee766761764e773fbd2ce45 SHA512 5131422b70e2bfd2e51dea03893ba98dc7f313753344e2280a23b6ebaffc0138a01a0717e43243c57bce1e50c7e32041cd7dd1214db78dfb7905c0dbb04569fc +EBUILD requests-2.29.0.ebuild 2088 BLAKE2B 75508c0a0f91d38399366023c76f0a514647fae417a17b1753b411be33b4f481cc7c42d0cf288e8d348d0d530e6cba42b2322b4cc02f419ce11f696990725bf5 SHA512 47fb74676e9bcfd8ce5bf5ba82a3b25216f179965c65953d75f259bd148f338c696fe955461296035c30105a26316b4dc7e796494e3e13194959080e7b20e56d MISC metadata.xml 824 BLAKE2B 5b803e4eedabb0a90d22d2a96aed0a1e0580e5ee3b0a28b5b93b4e71fd90a85ab72a8de015127a066a584f002d4ea759a168d5fcc4e633e980b08f1bc6dac179 SHA512 01e0ee5ca5343eba3b8259d0e81df9a17f3beb690cc452a77991db6844f961809eb6744c53ac6325197874ca7cd0b872bd8157d7fb23a77cc2c00a83f37fb29a diff --git a/dev-python/requests/requests-2.28.2.ebuild b/dev-python/requests/requests-2.28.2.ebuild index 70dc28300701..1a3ac22c500a 100644 --- a/dev-python/requests/requests-2.28.2.ebuild +++ b/dev-python/requests/requests-2.28.2.ebuild @@ -59,6 +59,10 @@ python_test() { tests/test_requests.py::TestTimeout::test_total_timeout_connect # TODO: openssl? tests/test_requests.py::TestRequests::test_pyopenssl_redirect + # flask-2 + tests/test_requests.py::TestRequests::test_cookie_sent_on_redirect + tests/test_requests.py::TestRequests::test_cookie_removed_on_expire + tests/test_requests.py::TestPreparingURLs::test_redirecting_to_bad_url ) if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then diff --git a/dev-python/requests/requests-2.29.0.ebuild b/dev-python/requests/requests-2.29.0.ebuild new file mode 100644 index 000000000000..1970e4609bae --- /dev/null +++ b/dev-python/requests/requests-2.29.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} pypy3 ) +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 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +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-1.27[${PYTHON_USEDEP}] + socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] ) +" + +BDEPEND=" + test? ( + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] + test-rust? ( + dev-python/trustme[${PYTHON_USEDEP}] + ) + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.28.0-drop-dependency-warnings.patch +) + +distutils_enable_tests pytest + +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 + # TODO: openssl? + tests/test_requests.py::TestRequests::test_pyopenssl_redirect + # flask-2 + tests/test_requests.py::TestRequests::test_cookie_sent_on_redirect + tests/test_requests.py::TestRequests::test_cookie_removed_on_expire + tests/test_requests.py::TestPreparingURLs::test_redirecting_to_bad_url + ) + + if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_requests.py::TestRequests::test_https_warnings + ) + fi + + epytest +} |