Hello community,

here is the log from the commit of package python-beautifulsoup4 for 
openSUSE:Factory checked in at 2020-04-15 19:52:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-beautifulsoup4 (Old)
 and      /work/SRC/openSUSE:Factory/.python-beautifulsoup4.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-beautifulsoup4"

Wed Apr 15 19:52:40 2020 rev:32 rq:793355 version:4.9.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-beautifulsoup4/python-beautifulsoup4.changes  
    2020-01-04 19:20:19.089110038 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-beautifulsoup4.new.2738/python-beautifulsoup4.changes
    2020-04-15 19:52:40.685549843 +0200
@@ -1,0 +2,13 @@
+Sun Apr 12 08:31:00 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix the tests to pass with new soupsieve too:
+  * soupsieve2-tests.patch
+  * The assert name changed
+
+-------------------------------------------------------------------
+Sun Apr 12 07:50:37 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 4.9.0:
+  * fixes to work with new soupsieve
+
+-------------------------------------------------------------------

Old:
----
  beautifulsoup4-4.8.2.tar.gz

New:
----
  beautifulsoup4-4.9.0.tar.gz
  soupsieve2-tests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-beautifulsoup4.spec ++++++
--- /var/tmp/diff_new_pack.W6MOJX/_old  2020-04-15 19:52:42.437550633 +0200
+++ /var/tmp/diff_new_pack.W6MOJX/_new  2020-04-15 19:52:42.437550633 +0200
@@ -18,20 +18,21 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-beautifulsoup4
-Version:        4.8.2
+Version:        4.9.0
 Release:        0
 Summary:        HTML/XML Parser for Quick-Turnaround Applications Like 
Screen-Scraping
 License:        MIT
 URL:            https://www.crummy.com/software/BeautifulSoup/
 Source:         
https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
+Patch0:         soupsieve2-tests.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module soupsieve}
+BuildRequires:  %{python_module soupsieve >= 1.2}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-Sphinx
-Requires:       python-soupsieve
-Suggests:       python-html5lib >= 0.999999
+Requires:       python-soupsieve >= 1.2
+Suggests:       python-html5lib
 Suggests:       python-lxml >= 3.4.4
 BuildArch:      noarch
 %python_subpackages
@@ -74,6 +75,7 @@
 
 %prep
 %setup -q -n beautifulsoup4-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ beautifulsoup4-4.8.2.tar.gz -> beautifulsoup4-4.9.0.tar.gz ++++++
++++ 5024 lines of diff (skipped)

++++++ soupsieve2-tests.patch ++++++
Index: beautifulsoup4-4.9.0/bs4/tests/test_tree.py
===================================================================
--- beautifulsoup4-4.9.0.orig/bs4/tests/test_tree.py
+++ beautifulsoup4-4.9.0/bs4/tests/test_tree.py
@@ -37,6 +37,7 @@ from bs4.testing import (
     SoupTest,
     skipIf,
 )
+from soupsieve import SelectorSyntaxError
 
 XML_BUILDER_PRESENT = (builder_registry.lookup("xml") is not None)
 LXML_PRESENT = (builder_registry.lookup("lxml") is not None)
@@ -2018,7 +2019,7 @@ class TestSoupSelector(TreeTest):
         self.assertEqual(len(self.soup.select('del')), 0)
 
     def test_invalid_tag(self):
-        self.assertRaises(SyntaxError, self.soup.select, 'tag%t')
+        self.assertRaises(SelectorSyntaxError, self.soup.select, 'tag%t')
 
     def test_select_dashed_tag_ids(self):
         self.assertSelects('custom-dashed-tag', ['dash1', 'dash2'])
@@ -2209,7 +2210,7 @@ class TestSoupSelector(TreeTest):
             NotImplementedError, self.soup.select, "a:no-such-pseudoclass")
 
         self.assertRaises(
-            SyntaxError, self.soup.select, "a:nth-of-type(a)")
+            SelectorSyntaxError, self.soup.select, "a:nth-of-type(a)")
 
     def test_nth_of_type(self):
         # Try to select first paragraph
@@ -2265,7 +2266,7 @@ class TestSoupSelector(TreeTest):
         self.assertEqual([], self.soup.select('#inner ~ h2'))
 
     def test_dangling_combinator(self):
-        self.assertRaises(SyntaxError, self.soup.select, 'h1 >')
+        self.assertRaises(SelectorSyntaxError, self.soup.select, 'h1 >')
 
     def test_sibling_combinator_wont_select_same_tag_twice(self):
         self.assertSelects('p[lang] ~ p', ['lang-en-gb', 'lang-en-us', 
'lang-fr'])
@@ -2296,8 +2297,8 @@ class TestSoupSelector(TreeTest):
         self.assertSelects('div x,y,  z', ['xid', 'yid', 'zida', 'zidb', 
'zidab', 'zidac'])
 
     def test_invalid_multiple_select(self):
-        self.assertRaises(SyntaxError, self.soup.select, ',x, y')
-        self.assertRaises(SyntaxError, self.soup.select, 'x,,y')
+        self.assertRaises(SelectorSyntaxError, self.soup.select, ',x, y')
+        self.assertRaises(SelectorSyntaxError, self.soup.select, 'x,,y')
 
     def test_multiple_select_attrs(self):
         self.assertSelects('p[lang=en], p[lang=en-gb]', ['lang-en', 
'lang-en-gb'])

Reply via email to