Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 4c909232bd | |||
| 5fa5e4838a | |||
| 63e3029d8a | |||
| 035c34c7ab |
@@ -1,34 +0,0 @@
|
|||||||
From c55bd8ad37db89bd219783bc514d600c9523ed38 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kurt McKee <contactme@kurtmckee.org>
|
|
||||||
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
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c9d0407b64c6f2a065d0ebb292c2b35c01050cc0dc33757461aaabdc4c4184d5
|
|
||||||
size 286197
|
|
||||||
3
feedparser-6.0.12.tar.gz
Normal file
3
feedparser-6.0.12.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:64f76ce90ae3e8ef5d1ede0f8d3b50ce26bcce71dd8ae5e82b1cd2d4a5f94228
|
||||||
|
size 286579
|
||||||
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 10 19:04:09 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
- 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á <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 12 20:24:21 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
|
Tue Dec 12 20:24:21 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-feedparser
|
# spec file for package python-feedparser
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,22 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-feedparser
|
Name: python-feedparser
|
||||||
Version: 6.0.11
|
Version: 6.0.12
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Universal Feed Parser Module for Python
|
Summary: Universal Feed Parser Module for Python
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: https://github.com/kurtmckee/feedparser
|
URL: https://github.com/kurtmckee/feedparser
|
||||||
Source: https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.gz
|
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 chardet}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module sgmllib3k}
|
BuildRequires: %{python_module sgmllib3k}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-sgmllib3k
|
Requires: python-sgmllib3k
|
||||||
@@ -50,10 +48,10 @@ A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS
|
|||||||
sed -i -e 's/verbosity=1/verbosity=2/' tests/runtests.py
|
sed -i -e 's/verbosity=1/verbosity=2/' tests/runtests.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -65,6 +63,6 @@ $python tests/runtests.py
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc NEWS README.rst
|
%doc NEWS README.rst
|
||||||
%{python_sitelib}/feedparser/
|
%{python_sitelib}/feedparser/
|
||||||
%{python_sitelib}/feedparser-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/feedparser-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user