Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-css-parser for 
openSUSE:Factory checked in at 2026-03-17 19:04:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-css-parser (Old)
 and      /work/SRC/openSUSE:Factory/.python-css-parser.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-css-parser"

Tue Mar 17 19:04:39 2026 rev:9 rq:1339451 version:1.0.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-css-parser/python-css-parser.changes      
2025-05-26 18:41:44.331051659 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-css-parser.new.8177/python-css-parser.changes
    2026-03-17 19:06:19.233204617 +0100
@@ -1,0 +2,5 @@
+Mon Mar 16 23:17:16 UTC 2026 - Dirk Müller <[email protected]>
+
+- add remove-chardet-test.patch: remove chardet dependency
+
+-------------------------------------------------------------------

New:
----
  remove-chardet-test.patch

----------(New B)----------
  New:
- add remove-chardet-test.patch: remove chardet dependency
----------(New E)----------

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

Other differences:
------------------
++++++ python-css-parser.spec ++++++
--- /var/tmp/diff_new_pack.LE2mX8/_old  2026-03-17 19:06:19.793227825 +0100
+++ /var/tmp/diff_new_pack.LE2mX8/_new  2026-03-17 19:06:19.797227991 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-css-parser
 #
-# 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
@@ -25,14 +25,13 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/ebook-utils/css-parser
 Source:         
https://github.com/ebook-utils/css-parser/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch1:         remove-chardet-test.patch
 BuildRequires:  %{python_module base >= 3.7}
-BuildRequires:  %{python_module chardet}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-chardet
 BuildArch:      noarch
 %python_subpackages
 

++++++ remove-chardet-test.patch ++++++
>From 1205f11bff3e10a6c88b764e9dbf193b7a228702 Mon Sep 17 00:00:00 2001
From: Kovid Goyal <[email protected]>
Date: Sun, 22 Feb 2026 16:41:38 +0530
Subject: [PATCH] Skip chardet test for chardet >= 6

Apparently they completely broke encoding detection in 6.0.0. Sigh.
Thankfully I no longer use this chardet in calibre, so I dont really
care to investigate why it is so broken and get it fixed.

Fixes #14
---
 css_parser_tests/test_encutils.py | 24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

Index: css-parser-1.0.10/css_parser_tests/test_encutils.py
===================================================================
--- css-parser-1.0.10.orig/css_parser_tests/test_encutils.py
+++ css-parser-1.0.10/css_parser_tests/test_encutils.py
@@ -190,24 +190,6 @@ class AutoEncodingTestCase(unittest.Test
         for exp, test in tests:
             self.assertEqual(exp, encutils.detectXMLEncoding(test, log=log))
 
-    def test_tryEncodings(self):
-        "encutils.tryEncodings"
-        try:
-            tests = [
-                ('ascii', 'abc'.encode('ascii')),
-                ('windows-1252', '€'.encode('windows-1252')),
-                ('ascii', '1'.encode('utf-8'))
-            ]
-        except ImportError:
-            tests = [
-                ('ascii', 'abc'.encode('ascii')),
-                ('windows-1252', '€'.encode('windows-1252')),
-                ('iso-8859-1', 'äöüß'.encode('iso-8859-1')),
-                ('iso-8859-1', 'äöüß'.encode('windows-1252')),
-                # ('utf-8', u'\u1111'.encode('utf-8'))
-            ]
-        for exp, test in tests:
-            self.assertEqual(exp.lower(), encutils.tryEncodings(test).lower())
 
     def test_getEncodingInfo(self):
         "encutils.getEncodingInfo"

Reply via email to