From dbf1b3ef5158e39978965f53f191fae164532afb Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Sun, 26 May 2024 11:54:01 +0200 Subject: [PATCH] dev-python/requests: add requests-2.28.0-drop-dependency-warnings.patch Signed-off-by: Andreas Billmeier --- README.md | 4 ++-- dev-python/requests/Manifest | 1 + ...ests-2.28.0-drop-dependency-warnings.patch | 21 +++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 dev-python/requests/files/requests-2.28.0-drop-dependency-warnings.patch diff --git a/README.md b/README.md index c9aabfd5f..5fea021d7 100644 --- a/README.md +++ b/README.md @@ -606,7 +606,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 1848 Ebuilds in total, 1837 of them have in total 1860 (42 different) licenses assigned. +There are 1849 Ebuilds in total, 1838 of them have in total 1861 (42 different) licenses assigned. |License| Ebuilds using it| |-------|-----| @@ -622,8 +622,8 @@ There are 1848 Ebuilds in total, 1837 of them have in total 1860 (42 different) |all-rights-reserved|13| |Unlicense|9| |PSF-2|8| +|ISC|6| |MPL-2.0|6| -|ISC|5| |EPL-1.0|4| |ZPL|3| |LGPL-2.1+|3| diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest index 7398099f0..9f0dc21f1 100644 --- a/dev-python/requests/Manifest +++ b/dev-python/requests/Manifest @@ -1,3 +1,4 @@ +AUX requests-2.28.0-drop-dependency-warnings.patch 759 BLAKE2B b2cc24d9d3137ad652ab9d8c14a08dd33af7d3f2968433a0f6cb09dda46ee5c98f428e495e5a565d32a142c22afb439e4604e09d2693b945bcceab0475381700 SHA512 2e486d399c311b81522d390ff9eb601fbc31f3ba64c7c3635aa0aa37e959acdba4f0cd4fd87d5ad51e1c50d83057c2f4ea02d9077702d51bda711730ea82e3ce DIST requests-2.31.0.tar.gz 110794 BLAKE2B e4e2781b272ccd94230c5b8c1bea83901bc8c28a34880709dbb95b887417b47833512e25045dab6e4226295294e2bf56fc821b6f636ae28aefdeee6039f53d44 SHA512 ce50d64973752f4cf7f7c7c91401669854b55c66d7465bea3689772fae8a6b646cf6720d84a2984bbe6fd78fc8b9ce0aa377f291fb6d7c20c7c2a4be8193acdd EBUILD requests-2.31.0.ebuild 2284 BLAKE2B 5c3e52428061932834b7bc9a56afaa81dbc2820b256115c6e5c9b7e32b80f5cc5c58b0bba373c01ea55bc6d93ca1f5387767a02010e2bd07b62356efe0a8e263 SHA512 405f38403b2f8507ede5755e0e5ebe40c9246f74139ecb82d6ca6fcf9cbfbd41d4dda4a2a2ae20f07445683fedc57d9942b452633b3fa64dc06f3809c85f5514 MISC metadata.xml 507 BLAKE2B d70be61e245e5380ac03ce4157a9943a14fe2b18ab0e3d9828301bede431f87b5dc9656933250bf1151d20a40f2e126494b009bab80f92d15030d4b52c937ad0 SHA512 3409044924fc2481d1eb100807bbd94aff37b8b5ba78cf261d156376ac780fe26cb6c558aeaf7b6d0e342b766d572c28dcd2403021d3158439154fe7799b4d9b diff --git a/dev-python/requests/files/requests-2.28.0-drop-dependency-warnings.patch b/dev-python/requests/files/requests-2.28.0-drop-dependency-warnings.patch new file mode 100644 index 000000000..ec3634966 --- /dev/null +++ b/dev-python/requests/files/requests-2.28.0-drop-dependency-warnings.patch @@ -0,0 +1,21 @@ +Minimal patch to avoid often rebasing. + +We already have tools to try check for these (`pip check` obviously, but also +app-portage/gpyutils provides gpy-verify-deps). +--- a/requests/__init__.py ++++ b/requests/__init__.py +@@ -106,13 +106,7 @@ try: + urllib3.__version__, chardet_version, charset_normalizer_version + ) + except (AssertionError, ValueError): +- warnings.warn( +- "urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " +- "version!".format( +- urllib3.__version__, chardet_version, charset_normalizer_version +- ), +- RequestsDependencyWarning, +- ) ++ pass + + # Attempt to enable urllib3's fallback for SNI support + # if the standard library doesn't support SNI or the