Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-beautifulsoup4 for
openSUSE:Factory checked in at 2024-11-06 16:49:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-beautifulsoup4 (Old)
and /work/SRC/openSUSE:Factory/.python-beautifulsoup4.new.2020 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-beautifulsoup4"
Wed Nov 6 16:49:29 2024 rev:41 rq:1220019 version:4.12.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-beautifulsoup4/python-beautifulsoup4.changes
2024-01-21 23:07:13.979048703 +0100
+++
/work/SRC/openSUSE:Factory/.python-beautifulsoup4.new.2020/python-beautifulsoup4.changes
2024-11-06 16:49:55.523094602 +0100
@@ -1,0 +2,11 @@
+Fri Nov 1 07:22:57 UTC 2024 - Matej Cepl <[email protected]>
+
+- Add soupsieve26-compat.patch to make tests more tolerant with
+ various versions of soupsieve (better solution for lp#2086199).
+
+-------------------------------------------------------------------
+Thu Oct 31 14:24:07 UTC 2024 - Matej Cepl <[email protected]>
+
+- Skip the test test_unsupported_pseudoclass (lp#2086199).
+
+-------------------------------------------------------------------
New:
----
soupsieve26-compat.patch
BETA DEBUG BEGIN:
New:
- Add soupsieve26-compat.patch to make tests more tolerant with
various versions of soupsieve (better solution for lp#2086199).
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-beautifulsoup4.spec ++++++
--- /var/tmp/diff_new_pack.ZStZKA/_old 2024-11-06 16:49:56.607137015 +0100
+++ /var/tmp/diff_new_pack.ZStZKA/_new 2024-11-06 16:49:56.607137015 +0100
@@ -24,6 +24,9 @@
License: MIT
URL: https://www.crummy.com/software/BeautifulSoup/
Source:
https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM soupsieve26-compat.patch lp#2086199 [email protected]
+# compatibility patch for various versions of soupsieve
+Patch0: soupsieve26-compat.patch
BuildRequires: %{python_module cchardet}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
@@ -37,6 +40,7 @@
Requires: python-soupsieve >= 1.2
Suggests: python-html5lib
Suggests: python-lxml >= 3.4.4
+Provides: python-bs4 = %{version}-%{release}
BuildArch: noarch
%python_subpackages
@@ -79,7 +83,7 @@
%endif
%prep
-%setup -q -n beautifulsoup4-%{version}
+%autosetup -p1 -n beautifulsoup4-%{version}
%build
%pyproject_wheel
++++++ soupsieve26-compat.patch ++++++
---
bs4/tests/test_css.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/bs4/tests/test_css.py
+++ b/bs4/tests/test_css.py
@@ -332,7 +332,8 @@ class TestCSSSelectors(SoupTest):
assert "yes" == chosen.string
def test_unsupported_pseudoclass(self):
- with pytest.raises(NotImplementedError):
+ # Compatibility with various versions of soupsieve
+ with pytest.raises((NotImplementedError,SelectorSyntaxError)):
self.soup.select("a:no-such-pseudoclass")
with pytest.raises(SelectorSyntaxError):