Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-feedparser for
openSUSE:Factory checked in at 2022-05-20 17:50:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-feedparser (Old)
and /work/SRC/openSUSE:Factory/.python-feedparser.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-feedparser"
Fri May 20 17:50:48 2022 rev:35 rq:978244 version:6.0.9
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-feedparser/python-feedparser.changes
2022-02-07 23:40:02.069646314 +0100
+++
/work/SRC/openSUSE:Factory/.python-feedparser.new.1538/python-feedparser.changes
2022-05-20 17:51:23.323262203 +0200
@@ -1,0 +2,13 @@
+Fri May 20 09:28:16 UTC 2022 - Matej Cepl <[email protected]>
+
+- Add 304_python310-crash.patch fixing crash of test test_001741
+ on Python 3.10 (gh#kurtmckee/feedparser#304).
+
+-------------------------------------------------------------------
+Thu May 19 19:30:30 UTC 2022 - Beno??t Monin <[email protected]>
+
+- update to version 6.0.9:
+ * Fix a crash that can occur with GeoRSS feeds that lack a
+ <where> tag. (#305)
+
+-------------------------------------------------------------------
Old:
----
feedparser-6.0.8.tar.gz
New:
----
304_python310-crash.patch
feedparser-6.0.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-feedparser.spec ++++++
--- /var/tmp/diff_new_pack.psOZVq/_old 2022-05-20 17:51:23.763262603 +0200
+++ /var/tmp/diff_new_pack.psOZVq/_new 2022-05-20 17:51:23.771262610 +0200
@@ -19,22 +19,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-feedparser
-Version: 6.0.8
+Version: 6.0.9
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
[email protected]
+# Fix crash on Python 3.10
+Patch0: 304_python310-crash.patch
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sgmllib3k}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-sgmllib3k
Requires: python-xml
Recommends: python-chardet
-Requires: python-sgmllib3k
BuildArch: noarch
%python_subpackages
@@ -45,9 +48,6 @@
%prep
%autosetup -p1 -n feedparser-%{version}
-# Remove Python 3.10 non-compatible tests
-rm -v tests/wellformed/sanitize/xml_declaration_unexpected_character.xml
-
# Make tests more verbose
sed -i -e 's/verbosity=1/verbosity=2/' tests/runtests.py
++++++ 304_python310-crash.patch ++++++
>From c55bd8ad37db89bd219783bc514d600c9523ed38 Mon Sep 17 00:00:00 2001
From: Kurt McKee <[email protected]>
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
++++++ feedparser-6.0.8.tar.gz -> feedparser-6.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/NEWS new/feedparser-6.0.9/NEWS
--- old/feedparser-6.0.8/NEWS 2021-06-22 14:25:13.000000000 +0200
+++ new/feedparser-6.0.9/NEWS 2022-05-19 15:19:59.000000000 +0200
@@ -1,5 +1,8 @@
coming in the next release:
+6.0.9 - 19 May 2022
+ * Fix a crash that can occur with GeoRSS feeds that lack a ``<where>``
tag. (#305)
+
6.0.8 - 22 June 2021
* Fix the name and link to the chardet module in the documentation.
(#280)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/PKG-INFO
new/feedparser-6.0.9/PKG-INFO
--- old/feedparser-6.0.8/PKG-INFO 2021-06-22 14:26:10.866088400 +0200
+++ new/feedparser-6.0.9/PKG-INFO 2022-05-19 15:26:05.772651200 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: feedparser
-Version: 6.0.8
+Version: 6.0.9
Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom
0.3, and Atom 1.0 feeds
Home-page: https://github.com/kurtmckee/feedparser
+Download-URL: https://pypi.python.org/pypi/feedparser
Author: Kurt McKee
Author-email: [email protected]
License: BSD-2-Clause
-Download-URL: https://pypi.python.org/pypi/feedparser
Keywords: atom,cdf,feed,parser,rdf,rss
Platform: POSIX
Platform: Windows
@@ -78,5 +78,3 @@
This will spawn an HTTP server that will listen on port 8097. The tests will
fail if that port is in use.
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/feedparser/__init__.py
new/feedparser-6.0.9/feedparser/__init__.py
--- old/feedparser-6.0.8/feedparser/__init__.py 2021-06-22 14:25:13.000000000
+0200
+++ new/feedparser-6.0.9/feedparser/__init__.py 2022-05-19 15:19:59.000000000
+0200
@@ -32,7 +32,7 @@
__author__ = 'Kurt McKee <[email protected]>'
__license__ = 'BSD 2-clause'
-__version__ = '6.0.8'
+__version__ = '6.0.9'
# HTTP "User-Agent" header to send to servers when downloading feeds.
# If you are embedding feedparser in a larger application, you should
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/feedparser/namespaces/georss.py
new/feedparser-6.0.9/feedparser/namespaces/georss.py
--- old/feedparser-6.0.8/feedparser/namespaces/georss.py 2021-06-13
18:52:57.000000000 +0200
+++ new/feedparser-6.0.9/feedparser/namespaces/georss.py 2022-05-19
15:19:59.000000000 +0200
@@ -91,6 +91,8 @@
except ValueError:
srs_dimension = 2
context = self._get_context()
+ if 'where' not in context:
+ context['where'] = {}
context['where']['srsName'] = srs_name
context['where']['srsDimension'] = srs_dimension
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/feedparser.egg-info/PKG-INFO
new/feedparser-6.0.9/feedparser.egg-info/PKG-INFO
--- old/feedparser-6.0.8/feedparser.egg-info/PKG-INFO 2021-06-22
14:25:46.000000000 +0200
+++ new/feedparser-6.0.9/feedparser.egg-info/PKG-INFO 2022-05-19
15:25:59.000000000 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: feedparser
-Version: 6.0.8
+Version: 6.0.9
Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom
0.3, and Atom 1.0 feeds
Home-page: https://github.com/kurtmckee/feedparser
+Download-URL: https://pypi.python.org/pypi/feedparser
Author: Kurt McKee
Author-email: [email protected]
License: BSD-2-Clause
-Download-URL: https://pypi.python.org/pypi/feedparser
Keywords: atom,cdf,feed,parser,rdf,rss
Platform: POSIX
Platform: Windows
@@ -78,5 +78,3 @@
This will spawn an HTTP server that will listen on port 8097. The tests will
fail if that port is in use.
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/feedparser.egg-info/SOURCES.txt
new/feedparser-6.0.9/feedparser.egg-info/SOURCES.txt
--- old/feedparser-6.0.8/feedparser.egg-info/SOURCES.txt 2021-06-22
14:25:48.000000000 +0200
+++ new/feedparser-6.0.9/feedparser.egg-info/SOURCES.txt 2022-05-19
15:26:01.000000000 +0200
@@ -669,6 +669,7 @@
tests/illformed/chardet/windows1255.xml
tests/illformed/geo/georss_point_no_coords.xml
tests/illformed/geo/georss_polygon_insufficient_coords.xml
+tests/illformed/geo/gml_point.xml
tests/wellformed/amp/amp01.xml
tests/wellformed/amp/amp02.xml
tests/wellformed/amp/amp03.xml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.8/tests/illformed/geo/gml_point.xml
new/feedparser-6.0.9/tests/illformed/geo/gml_point.xml
--- old/feedparser-6.0.8/tests/illformed/geo/gml_point.xml 1970-01-01
01:00:00.000000000 +0100
+++ new/feedparser-6.0.9/tests/illformed/geo/gml_point.xml 2022-05-19
15:19:59.000000000 +0200
@@ -0,0 +1,14 @@
+<!--
+Description: item point where
+Expect: entries[0]['where']['type'] == 'Point' and
entries[0]['where']['coordinates'] == (31.1732, 36.9382)
+-->
+<feed
+ xmlns="http://www.w3.org/2005/Atom"
+ xmlns:gml="http://www.opengis.net/gml"
+ >
+ <entry>
+ <gml:Point>
+ <gml:pos>36.9382 31.1732</gml:pos>
+ </gml:Point>
+ </entry>
+</feed>