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-03-17 19:02:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests (Old)
and /work/SRC/openSUSE:Factory/.python-requests.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requests"
Tue Mar 17 19:02:38 2026 rev:90 rq:1339320 version:2.32.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-requests/python-requests.changes
2025-10-02 19:18:51.219075136 +0200
+++
/work/SRC/openSUSE:Factory/.python-requests.new.8177/python-requests.changes
2026-03-17 19:03:56.735299261 +0100
@@ -1,0 +2,8 @@
+Mon Mar 16 06:04:29 UTC 2026 - [email protected]
+
+- Add fix-chardet-RequestsDependencyWarning.patch
+ * 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:
- Add fix-chardet-RequestsDependencyWarning.patch
* Fix RequestsDependencyWarning with chardet (6.0.0dev0) on
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-requests.spec ++++++
--- /var/tmp/diff_new_pack.VtEvsO/_old 2026-03-17 19:03:57.399326779 +0100
+++ /var/tmp/diff_new_pack.VtEvsO/_new 2026-03-17 19:03:57.399326779 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-requests
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -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 ++++++
--- a/src/requests/__init__.py
+++ b/src/requests/__init__.py
@@ -42,6 +42,8 @@ import warnings
import urllib3
+import re
+
from .exceptions import RequestsDependencyWarning
try:
@@ -74,9 +76,9 @@ 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)
- # chardet_version >= 3.0.2, < 6.0.0
- assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0)
+ 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:
major, minor, patch = charset_normalizer_version.split(".")[:3]
major, minor, patch = int(major), int(minor), int(patch)