Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-requests for openSUSE:Factory 
checked in at 2026-04-16 17:25:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests (Old)
 and      /work/SRC/openSUSE:Factory/.python-requests.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requests"

Thu Apr 16 17:25:28 2026 rev:93 rq:1345517 version:2.33.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-requests/python-requests.changes  
2026-04-01 19:55:28.889216998 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-requests.new.11940/python-requests.changes   
    2026-04-16 17:25:50.500645793 +0200
@@ -1,0 +2,8 @@
+Thu Apr  9 11:10:20 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Recover fix-chardet-RequestsDependencyWarning.patch, bsc#1261500
+  * Fix RequestsDependencyWarning with chardet (6.0.0dev0) on
+    Factory/TW (gh#psf/requests#7219) (gh#psf/requests#7220)
+    (gh#psf/requests#7239)
+
+-------------------------------------------------------------------

New:
----
  fix-chardet-RequestsDependencyWarning.patch

----------(New B)----------
  New:
- Recover fix-chardet-RequestsDependencyWarning.patch, bsc#1261500
  * Fix RequestsDependencyWarning with chardet (6.0.0dev0) on
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-requests.spec ++++++
--- /var/tmp/diff_new_pack.iColx5/_old  2026-04-16 17:25:51.136671967 +0200
+++ /var/tmp/diff_new_pack.iColx5/_new  2026-04-16 17:25:51.136671967 +0200
@@ -32,6 +32,8 @@
 License:        Apache-2.0
 URL:            https://docs.python-requests.org/
 Source:         
https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE fix-chardet-RequestsDependencyWarning.patch 
[email protected] -- based on PR 7239
+Patch0:         fix-chardet-RequestsDependencyWarning.patch
 BuildRequires:  %{python_module base >= 3.9}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}

++++++ fix-chardet-RequestsDependencyWarning.patch ++++++
Index: requests-2.33.1/src/requests/__init__.py
===================================================================
--- requests-2.33.1.orig/src/requests/__init__.py
+++ requests-2.33.1/src/requests/__init__.py
@@ -42,6 +42,8 @@ import warnings
 
 import urllib3
 
+import re
+
 from .exceptions import RequestsDependencyWarning
 
 try:
@@ -74,7 +76,7 @@ def check_compatibility(urllib3_version,
     # Check charset_normalizer for compatibility.
     if chardet_version:
         major, minor, patch = chardet_version.split(".")[:3]
-        major, minor, patch = int(major), int(minor), int(patch)
+        major, minor, patch = int(major), int(minor), int(re.sub(r'[^\d]+', 
'', patch))
         # chardet_version >= 3.0.2, < 8.0.0
         assert (3, 0, 2) <= (major, minor, patch) < (8, 0, 0)
     elif charset_normalizer_version:

Reply via email to