From 69b0fa703ad0172d2df5e8d92fce0e79224560e5212e6e57ea5d950a6ac742e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 11 Sep 2025 05:41:37 +0000 Subject: [PATCH] Accepting request 1303700 from home:benoit_monin:branches:devel:languages:python - update to version 6.0.11 - drop 304_python310-crash.patch: fixed upstream OBS-URL: https://build.opensuse.org/request/show/1303700 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=70 --- 304_python310-crash.patch | 34 ---------------------------------- feedparser-6.0.11.tar.gz | 3 --- feedparser-6.0.12.tar.gz | 3 +++ python-feedparser.changes | 10 ++++++++++ python-feedparser.spec | 7 ++----- 5 files changed, 15 insertions(+), 42 deletions(-) delete mode 100644 304_python310-crash.patch delete mode 100644 feedparser-6.0.11.tar.gz create mode 100644 feedparser-6.0.12.tar.gz diff --git a/304_python310-crash.patch b/304_python310-crash.patch deleted file mode 100644 index 6ec755a..0000000 --- a/304_python310-crash.patch +++ /dev/null @@ -1,34 +0,0 @@ -From c55bd8ad37db89bd219783bc514d600c9523ed38 Mon Sep 17 00:00:00 2001 -From: Kurt McKee -Date: Sat, 12 Jun 2021 15:32:05 -0500 -Subject: [PATCH] Fix a crash that occurs with Python 3.10.0b2 - ---- - changelog.d/20210612_152233_kurtmckee_python3_10.rst | 4 ++++ - feedparser/html.py | 2 +- - 2 files changed, 5 insertions(+), 1 deletion(-) - create mode 100644 changelog.d/20210612_152233_kurtmckee_python3_10.rst - -diff --git a/changelog.d/20210612_152233_kurtmckee_python3_10.rst b/changelog.d/20210612_152233_kurtmckee_python3_10.rst -new file mode 100644 -index 00000000..3795cdc0 ---- /dev/null -+++ b/changelog.d/20210612_152233_kurtmckee_python3_10.rst -@@ -0,0 +1,4 @@ -+Fixed -+----- -+ -+* Fix a crash that occurs with Python 3.10.0b2. -diff --git a/feedparser/html.py b/feedparser/html.py -index be913311..f78270a3 100644 ---- a/feedparser/html.py -+++ b/feedparser/html.py -@@ -337,7 +337,7 @@ def parse_declaration(self, i): - - try: - return sgmllib.SGMLParser.parse_declaration(self, i) -- except sgmllib.SGMLParseError: -+ except (AssertionError, sgmllib.SGMLParseError): - # Escape the doctype declaration and continue parsing. - self.handle_data('<') - return i+1 diff --git a/feedparser-6.0.11.tar.gz b/feedparser-6.0.11.tar.gz deleted file mode 100644 index 0901268..0000000 --- a/feedparser-6.0.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9d0407b64c6f2a065d0ebb292c2b35c01050cc0dc33757461aaabdc4c4184d5 -size 286197 diff --git a/feedparser-6.0.12.tar.gz b/feedparser-6.0.12.tar.gz new file mode 100644 index 0000000..d631985 --- /dev/null +++ b/feedparser-6.0.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64f76ce90ae3e8ef5d1ede0f8d3b50ce26bcce71dd8ae5e82b1cd2d4a5f94228 +size 286579 diff --git a/python-feedparser.changes b/python-feedparser.changes index 557f103..6724c45 100644 --- a/python-feedparser.changes +++ b/python-feedparser.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Sep 10 19:04:09 UTC 2025 - Benoît Monin + +- update to version 6.0.11: + * Fix an AssertionError crash that occurs with Python 3.10 and + higher. (#304) + * Fix a DeprecationWarning thrown during calls to re.sub. (#389) + * Add a Read the Docs configuration. +- drop 304_python310-crash.patch: fixed upstream + ------------------------------------------------------------------- Tue May 27 11:44:14 UTC 2025 - Markéta Machová diff --git a/python-feedparser.spec b/python-feedparser.spec index 1da5f90..fe0c7a8 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-feedparser # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 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 @@ -18,16 +18,13 @@ %{?sle15_python_module_pythons} Name: python-feedparser -Version: 6.0.11 +Version: 6.0.12 Release: 0 Summary: Universal Feed Parser Module for Python License: BSD-2-Clause Group: Development/Libraries/Python URL: https://github.com/kurtmckee/feedparser Source: https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.gz -# PATCH-FIX-UPSTREAM 304_python310-crash.patch gh#kurtmckee/feedparser#304 mcepl@suse.com -# Fix crash on Python 3.10 -Patch0: 304_python310-crash.patch BuildRequires: %{python_module chardet} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools}