diff --git a/beautifulsoup4-4.6.0.tar.gz b/beautifulsoup4-4.6.0.tar.gz deleted file mode 100644 index 56c0349..0000000 --- a/beautifulsoup4-4.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:808b6ac932dccb0a4126558f7dfdcf41710dd44a4ef497a0bb59a77f9f078e89 -size 160846 diff --git a/beautifulsoup4-4.6.1.tar.gz b/beautifulsoup4-4.6.1.tar.gz new file mode 100644 index 0000000..62125a3 --- /dev/null +++ b/beautifulsoup4-4.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd43a3b26d2886acd63070c43da821b60dea603eb6d45bab0294aac6129adbfa +size 165733 diff --git a/beautifulsoup4-lxml-fixes.patch b/beautifulsoup4-lxml-fixes.patch index 00ff53b..9db195a 100644 --- a/beautifulsoup4-lxml-fixes.patch +++ b/beautifulsoup4-lxml-fixes.patch @@ -1,7 +1,8 @@ -diff -ruN a/bs4/testing.py b/bs4/testing.py ---- a/bs4/testing.py 2013-06-10 15:16:25.000000000 +0200 -+++ b/bs4/testing.py 2014-01-08 16:09:35.845681062 +0100 -@@ -493,7 +493,7 @@ +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): @@ -10,10 +11,11 @@ diff -ruN a/bs4/testing.py b/bs4/testing.py soup = self.soup(markup) self.assertEqual(u'Sacr\xe9 bleu!', soup.root.string) -diff -ruN a/bs4/tests/test_lxml.py b/bs4/tests/test_lxml.py ---- a/bs4/tests/test_lxml.py 2013-08-19 16:29:42.000000000 +0200 -+++ b/bs4/tests/test_lxml.py 2014-01-08 16:10:33.157497450 +0100 -@@ -61,6 +61,7 @@ +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: diff --git a/python-beautifulsoup4.changes b/python-beautifulsoup4.changes index f8efe8c..3ae74a2 100644 --- a/python-beautifulsoup4.changes +++ b/python-beautifulsoup4.changes @@ -1,3 +1,57 @@ +------------------------------------------------------------------- +Sun Aug 5 11:02:25 UTC 2018 - adrian@suse.de + +- update to 4.6.1: + * Stop data loss when encountering an empty numeric entity, and + possibly in other cases. Thanks to tos.kamiya for the fix. [bug=1698503] + + * Preserve XML namespaces introduced inside an XML document, not just + the ones introduced at the top level. [bug=1718787] + + * Added a new formatter, "html5", which represents void elements + as "" rather than "". [bug=1716272] + + * Fixed a problem where the html.parser tree builder interpreted + a string like "&foo " as the character entity "&foo;" [bug=1728706] + + * Correctly handle invalid HTML numeric character entities like “ + which reference code points that are not Unicode code points. Note + that this is only fixed when Beautiful Soup is used with the + html.parser parser -- html5lib already worked and I couldn't fix it + with lxml. [bug=1782933] + + * Improved the warning given when no parser is specified. [bug=1780571] + + * When markup contains duplicate elements, a select() call that + includes multiple match clauses will match all relevant + elements. [bug=1770596] + + * Fixed code that was causing deprecation warnings in recent Python 3 + versions. Includes a patch from Ville Skyttä. [bug=1778909] [bug=1689496] + + * Fixed a Windows crash in diagnose() when checking whether a long + markup string is a filename. [bug=1737121] + + * Stopped HTMLParser from raising an exception in very rare cases of + bad markup. [bug=1708831] + + * Fixed a bug where find_all() was not working when asked to find a + tag with a namespaced name in an XML document that was parsed as + HTML. [bug=1723783] + + * You can get finer control over formatting by subclassing + bs4.element.Formatter and passing a Formatter instance into (e.g.) + encode(). [bug=1716272] + + * You can pass a dictionary of `attrs` into + BeautifulSoup.new_tag. This makes it possible to create a tag with + an attribute like 'name' that would otherwise be masked by another + argument of new_tag. [bug=1779276] + + * Clarified the deprecation warning when accessing tag.fooTag, to cover + the possibility that you might really have been looking for a tag + called 'fooTag'. + ------------------------------------------------------------------- Mon Jul 16 18:08:01 UTC 2018 - mcepl@suse.com diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index e696060..f40c8e7 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-beautifulsoup4 -Version: 4.6.0 +Version: 4.6.1 Release: 0 Summary: HTML/XML Parser for Quick-Turnaround Applications Like Screen-Scraping License: MIT