From 952fbe94387d7937aba9955da2749efcd6d4f9e8e2f7d4e3228d6a25ada50e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 1 Nov 2019 09:03:11 +0000 Subject: [PATCH] - Update to 4.8.1: * When the html.parser or html5lib parsers are in use, Beautiful Soup will, by default, record the position in the original document where each tag was encountered. * Fixed the definition of the default XML namespace when using lxml 4.4. * Avoid a crash when unpickling certain parse trees generated using html5lib on Python 3. * Avoid a crash when trying to detect the declared encoding of a Unicode document. - Drop patch beautifulsoup4-lxml-fixes.patch as it seems not needed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=71 --- beautifulsoup4-4.8.0.tar.gz | 3 --- beautifulsoup4-4.8.1.tar.gz | 3 +++ beautifulsoup4-lxml-fixes.patch | 25 ------------------------- python-beautifulsoup4.changes | 15 +++++++++++++++ python-beautifulsoup4.spec | 5 +---- 5 files changed, 19 insertions(+), 32 deletions(-) delete mode 100644 beautifulsoup4-4.8.0.tar.gz create mode 100644 beautifulsoup4-4.8.1.tar.gz delete mode 100644 beautifulsoup4-lxml-fixes.patch diff --git a/beautifulsoup4-4.8.0.tar.gz b/beautifulsoup4-4.8.0.tar.gz deleted file mode 100644 index 657433e..0000000 --- a/beautifulsoup4-4.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25288c9e176f354bf277c0a10aa96c782a6a18a17122dba2e8cec4a97e03343b -size 170919 diff --git a/beautifulsoup4-4.8.1.tar.gz b/beautifulsoup4-4.8.1.tar.gz new file mode 100644 index 0000000..1d4c45d --- /dev/null +++ b/beautifulsoup4-4.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6135db2ba678168c07950f9a16c4031822c6f4aec75a65e0a97bc5ca09789931 +size 159164 diff --git a/beautifulsoup4-lxml-fixes.patch b/beautifulsoup4-lxml-fixes.patch deleted file mode 100644 index 9db195a..0000000 --- a/beautifulsoup4-lxml-fixes.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: beautifulsoup4-4.6.1/bs4/testing.py -=================================================================== ---- beautifulsoup4-4.6.1.orig/bs4/testing.py -+++ beautifulsoup4-4.6.1/bs4/testing.py -@@ -677,7 +677,7 @@ class XMLTreeBuilderSmokeTest(object): - self.assertTrue(b"< < hey > >" in encoded) - - def test_can_parse_unicode_document(self): -- markup = u'Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!' -+ markup = u'Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!' - soup = self.soup(markup) - self.assertEqual(u'Sacr\xe9 bleu!', soup.root.string) - -Index: beautifulsoup4-4.6.1/bs4/tests/test_lxml.py -=================================================================== ---- beautifulsoup4-4.6.1.orig/bs4/tests/test_lxml.py -+++ beautifulsoup4-4.6.1/bs4/tests/test_lxml.py -@@ -67,6 +67,7 @@ class LXMLTreeBuilderSmokeTest(SoupTest, - # Make sure that the deprecated BSS class uses an xml builder - # if one is installed. - with warnings.catch_warnings(record=True) as w: -+ warnings.simplefilter("always") - soup = BeautifulStoneSoup("") - self.assertEqual(u"", unicode(soup.b)) - self.assertTrue("BeautifulStoneSoup class is deprecated" in str(w[0].message)) diff --git a/python-beautifulsoup4.changes b/python-beautifulsoup4.changes index 97c0ef9..1a6c506 100644 --- a/python-beautifulsoup4.changes +++ b/python-beautifulsoup4.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Nov 1 08:59:57 UTC 2019 - Tomáš Chvátal + +- Update to 4.8.1: + * When the html.parser or html5lib parsers are in use, Beautiful Soup + will, by default, record the position in the original document where + each tag was encountered. + * Fixed the definition of the default XML namespace when using + lxml 4.4. + * Avoid a crash when unpickling certain parse trees generated + using html5lib on Python 3. + * Avoid a crash when trying to detect the declared encoding of a + Unicode document. +- Drop patch beautifulsoup4-lxml-fixes.patch as it seems not needed + ------------------------------------------------------------------- Mon Oct 14 11:41:52 UTC 2019 - Matej Cepl diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index 1aa02ea..cf5b21c 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -18,14 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-beautifulsoup4 -Version: 4.8.0 +Version: 4.8.1 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 -# PATCH-FIX-UPSTREAM speilicke@suse.com -- Backport of https://code.launchpad.net/~saschpe/beautifulsoup/beautifulsoup/+merge/200849 -Patch0: beautifulsoup4-lxml-fixes.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module soupsieve} @@ -76,7 +74,6 @@ Documentation and help files for %{name} %prep %setup -q -n beautifulsoup4-%{version} -%patch0 -p1 %build %python_build