Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-lxml_html_clean for
openSUSE:Factory checked in at 2025-10-10 17:10:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lxml_html_clean (Old)
and /work/SRC/openSUSE:Factory/.python-lxml_html_clean.new.5300 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lxml_html_clean"
Fri Oct 10 17:10:12 2025 rev:4 rq:1310437 version:0.4.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-lxml_html_clean/python-lxml_html_clean.changes
2025-04-14 12:56:34.919713046 +0200
+++
/work/SRC/openSUSE:Factory/.python-lxml_html_clean.new.5300/python-lxml_html_clean.changes
2025-10-10 17:11:38.847040704 +0200
@@ -1,0 +2,7 @@
+Fri Oct 10 05:38:18 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Update to 0.4.3:
+ * Tests updated to work correctly with new lxml and libxml2 releases.
+ * Python 3.6 and 3.7 are no longer tested.
+
+-------------------------------------------------------------------
Old:
----
lxml_html_clean-0.4.2.tar.gz
New:
----
lxml_html_clean-0.4.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-lxml_html_clean.spec ++++++
--- /var/tmp/diff_new_pack.0K16WO/_old 2025-10-10 17:11:39.583071727 +0200
+++ /var/tmp/diff_new_pack.0K16WO/_new 2025-10-10 17:11:39.587071896 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-lxml_html_clean
#
-# 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
@@ -17,16 +17,14 @@
%{?sle15_python_module_pythons}
-%define skip_python2 1
Name: python-lxml_html_clean
-Version: 0.4.2
+Version: 0.4.3
Release: 0
Summary: HTML cleaner from lxml project
License: BSD-3-Clause
-Group: Development/Languages/Python
URL: https://github.com/fedora-python/lxml_html_clean/
Source:
https://files.pythonhosted.org/packages/source/l/lxml-html-clean/lxml_html_clean-%{version}.tar.gz
-BuildRequires: %{python_module base >= 3.6}
+BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 61.0}
BuildRequires: %{python_module wheel}
++++++ lxml_html_clean-0.4.2.tar.gz -> lxml_html_clean-0.4.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxml_html_clean-0.4.2/CHANGES.rst
new/lxml_html_clean-0.4.3/CHANGES.rst
--- old/lxml_html_clean-0.4.2/CHANGES.rst 2025-04-09 13:13:01.000000000
+0200
+++ new/lxml_html_clean-0.4.3/CHANGES.rst 2025-10-02 22:46:25.000000000
+0200
@@ -6,6 +6,16 @@
Unreleased
==========
+0.4.3 (2025-10-02)
+==================
+
+Maintenance
+-----------
+
+* Tests updated to work correctly with new lxml and libxml2 releases.
+* Python 3.6 and 3.7 are no longer tested.
+* Improved documentation about CSS removal behavior.
+
0.4.2 (2025-04-09)
==================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxml_html_clean-0.4.2/PKG-INFO
new/lxml_html_clean-0.4.3/PKG-INFO
--- old/lxml_html_clean-0.4.2/PKG-INFO 2025-04-09 13:33:37.505761600 +0200
+++ new/lxml_html_clean-0.4.3/PKG-INFO 2025-10-02 22:46:55.823964600 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: lxml_html_clean
-Version: 0.4.2
+Version: 0.4.3
Summary: HTML cleaner from lxml project
Home-page: https://github.com/fedora-python/lxml_html_clean/
Author: Lumír Balhar
@@ -8,8 +8,6 @@
License: BSD-3-Clause
Project-URL: Documentation, https://lxml-html-clean.readthedocs.io/
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxml_html_clean-0.4.2/lxml_html_clean.egg-info/PKG-INFO
new/lxml_html_clean-0.4.3/lxml_html_clean.egg-info/PKG-INFO
--- old/lxml_html_clean-0.4.2/lxml_html_clean.egg-info/PKG-INFO 2025-04-09
13:33:37.000000000 +0200
+++ new/lxml_html_clean-0.4.3/lxml_html_clean.egg-info/PKG-INFO 2025-10-02
22:46:55.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: lxml_html_clean
-Version: 0.4.2
+Version: 0.4.3
Summary: HTML cleaner from lxml project
Home-page: https://github.com/fedora-python/lxml_html_clean/
Author: Lumír Balhar
@@ -8,8 +8,6 @@
License: BSD-3-Clause
Project-URL: Documentation, https://lxml-html-clean.readthedocs.io/
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxml_html_clean-0.4.2/setup.cfg
new/lxml_html_clean-0.4.3/setup.cfg
--- old/lxml_html_clean-0.4.2/setup.cfg 2025-04-09 13:33:37.506144800 +0200
+++ new/lxml_html_clean-0.4.3/setup.cfg 2025-10-02 22:46:55.824597600 +0200
@@ -1,6 +1,6 @@
[metadata]
name = lxml_html_clean
-version = 0.4.2
+version = 0.4.3
description = HTML cleaner from lxml project
long_description = file:README.md
long_description_content_type = text/markdown
@@ -13,8 +13,6 @@
license_files = LICENSE.txt
classifiers =
Programming Language :: Python :: 3
- Programming Language :: Python :: 3.6
- Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxml_html_clean-0.4.2/tests/test_clean.py
new/lxml_html_clean-0.4.3/tests/test_clean.py
--- old/lxml_html_clean-0.4.2/tests/test_clean.py 2025-04-09
13:06:29.000000000 +0200
+++ new/lxml_html_clean-0.4.3/tests/test_clean.py 2025-10-02
22:37:07.000000000 +0200
@@ -331,20 +331,20 @@
def test_host_whitelist_valid(self):
# Frame with valid hostname in src is allowed.
- html = '<div><iframe src="https://example.com/page"></div>'
+ html = '<div><iframe src="https://example.com/page"></iframe></div>'
expected = '<div><iframe
src="https://example.com/page"></iframe></div>'
cleaner = Cleaner(frames=False, host_whitelist=["example.com"])
self.assertEqual(expected, cleaner.clean_html(html))
def test_host_whitelist_invalid(self):
- html = '<div><iframe src="https://evil.com/page"></div>'
+ html = '<div><iframe src="https://evil.com/page"></iframe></div>'
expected = '<div></div>'
cleaner = Cleaner(frames=False, host_whitelist=["example.com"])
self.assertEqual(expected, cleaner.clean_html(html))
def test_host_whitelist_sneaky_userinfo(self):
# Regression test: Don't be fooled by hostname and colon in userinfo.
- html = '<div><iframe src="https://example.com:@evil.com/page"></div>'
+ html = '<div><iframe
src="https://example.com:@evil.com/page"></iframe></div>'
expected = '<div></div>'
cleaner = Cleaner(frames=False, host_whitelist=["example.com"])
self.assertEqual(expected, cleaner.clean_html(html))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxml_html_clean-0.4.2/tests/test_clean.txt
new/lxml_html_clean-0.4.3/tests/test_clean.txt
--- old/lxml_html_clean-0.4.2/tests/test_clean.txt 2024-02-26
11:34:13.000000000 +0100
+++ new/lxml_html_clean-0.4.3/tests/test_clean.txt 2025-10-02
22:37:07.000000000 +0200
@@ -84,7 +84,7 @@
<body onload="evil_function()">
<!-- I am interpreted for EVIL! -->
<a href="javascript:evil_function()">a link</a>
- <a href="javascrip%20t%20:evil_function()">a control char link</a>
+ <a href="j%01a%02v%03a%04s%05c%06r%07i%0Ep%20t%20:evil_function()">a
control char link</a>
<a
href="data:text/html;base64,PHNjcmlwdD5hbGVydCgidGVzdCIpOzwvc2NyaXB0Pg==">data</a>
<a href="#" onclick="evil_function()">another link</a>
<p onclick="evil_function()">a paragraph</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxml_html_clean-0.4.2/tox.ini
new/lxml_html_clean-0.4.3/tox.ini
--- old/lxml_html_clean-0.4.2/tox.ini 2025-04-09 13:06:29.000000000 +0200
+++ new/lxml_html_clean-0.4.3/tox.ini 2025-10-02 22:37:07.000000000 +0200
@@ -1,5 +1,5 @@
[tox]
-envlist = py36,py38,py39,py310,py311,py312,py313,mypy
+envlist = py38,py39,py310,py311,py312,py313,mypy
skipsdist = True
[testenv]