Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-httpx for openSUSE:Factory 
checked in at 2026-03-14 22:20:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-httpx (Old)
 and      /work/SRC/openSUSE:Factory/.python-httpx.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-httpx"

Sat Mar 14 22:20:20 2026 rev:20 rq:1338554 version:0.28.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-httpx/python-httpx.changes        
2025-11-05 16:19:45.537746728 +0100
+++ /work/SRC/openSUSE:Factory/.python-httpx.new.8177/python-httpx.changes      
2026-03-14 22:20:36.668698863 +0100
@@ -1,0 +2,8 @@
+Thu Mar 12 19:41:21 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add support-chardet6-client-autodetect.patch and
+  support-chardet6-response-autodetect.patch (from
+  gh#encode/httpx!3773) patches to overcome incompatibility with
+  the new python-chardet >= 6.0
+
+-------------------------------------------------------------------

New:
----
  support-chardet6-client-autodetect.patch
  support-chardet6-response-autodetect.patch

----------(New B)----------
  New:
- Add support-chardet6-client-autodetect.patch and
  support-chardet6-response-autodetect.patch (from
  New:- Add support-chardet6-client-autodetect.patch and
  support-chardet6-response-autodetect.patch (from
  gh#encode/httpx!3773) patches to overcome incompatibility with
----------(New E)----------

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

Other differences:
------------------
++++++ python-httpx.spec ++++++
--- /var/tmp/diff_new_pack.WWfRwA/_old  2026-03-14 22:20:37.768744400 +0100
+++ /var/tmp/diff_new_pack.WWfRwA/_new  2026-03-14 22:20:37.772744566 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-httpx
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -39,6 +39,14 @@
 License:        BSD-3-Clause
 URL:            https://github.com/encode/httpx
 Source:         
https://github.com/encode/httpx/archive/%{version}.tar.gz#/httpx-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM support-chardet6-response-autodetect.patch 
gh#encode/httpx!3773 [email protected]
+# Allow also Windows-1252 as an alternative to ISO-8859-1 (for chardet 6.0)
+Patch0:         support-chardet6-response-autodetect.patch
+# PATCH-FIX-UPSTREAM support-chardet6-client-autodetect.patch bugno 
[email protected]
+# fixes the two remaining client-side failures in tests/client/test_client.py
+# one test now accepts either autodetected label
+# the miswired “explicit encoding” test now actually uses 
default_encoding="ISO-8859-1"
+Patch1:         support-chardet6-client-autodetect.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module hatch-fancy-pypi-readme}
 BuildRequires:  %{python_module hatchling}

++++++ support-chardet6-client-autodetect.patch ++++++
Index: httpx-0.28.1/tests/client/test_client.py
===================================================================
--- httpx-0.28.1.orig/tests/client/test_client.py       2024-12-06 
16:35:41.000000000 +0100
+++ httpx-0.28.1/tests/client/test_client.py    2026-03-12 20:07:33.264261915 
+0100
@@ -431,7 +431,7 @@
 
         assert response.status_code == 200
         assert response.reason_phrase == "OK"
-        assert response.encoding == "ISO-8859-1"
+        assert response.encoding in ("ISO-8859-1", "WINDOWS-1252")
         assert response.text == text
 
 
@@ -453,7 +453,7 @@
         return httpx.Response(200, content=content)
 
     transport = httpx.MockTransport(cp1252_but_no_content_type)
-    with httpx.Client(transport=transport, default_encoding=autodetect) as 
client:
+    with httpx.Client(transport=transport, default_encoding="ISO-8859-1") as 
client:
         response = client.get("http://www.example.com";)
 
         assert response.status_code == 200

++++++ support-chardet6-response-autodetect.patch ++++++
>From 63e885394a629d194b0aa867e8fbf475cdec6521 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <[email protected]>
Date: Sun, 22 Feb 2026 11:12:27 +0000
Subject: [PATCH] Adapt test_response_decode_text_using_autodetect for chardet
 6.0

See https://github.com/encode/httpx/discussions/3772.
---
 tests/models/test_responses.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/models/test_responses.py b/tests/models/test_responses.py
index 06c28e1e30..d2972da5bd 100644
--- a/tests/models/test_responses.py
+++ b/tests/models/test_responses.py
@@ -1011,7 +1011,10 @@ def test_response_decode_text_using_autodetect():
 
     assert response.status_code == 200
     assert response.reason_phrase == "OK"
-    assert response.encoding == "ISO-8859-1"
+    # The encoded byte string is consistent with either ISO-8859-1 or
+    # WINDOWS-1252. Versions <6.0 of chardet claim the former, while chardet
+    # 6.0 detects the latter.
+    assert response.encoding in ("ISO-8859-1", "WINDOWS-1252")
     assert response.text == text
 
 

Reply via email to