forked from pool/python-beautifulsoup4
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
7b384a9de6
commit
952fbe9438
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:25288c9e176f354bf277c0a10aa96c782a6a18a17122dba2e8cec4a97e03343b
|
||||
size 170919
|
||||
3
beautifulsoup4-4.8.1.tar.gz
Normal file
3
beautifulsoup4-4.8.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6135db2ba678168c07950f9a16c4031822c6f4aec75a65e0a97bc5ca09789931
|
||||
size 159164
|
||||
@@ -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'<?xml version="1.0" encoding="euc-jp"><root>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</root>'
|
||||
+ markup = u'<?xml version="1.0""><root>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</root>'
|
||||
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("<b />")
|
||||
self.assertEqual(u"<b/>", unicode(soup.b))
|
||||
self.assertTrue("BeautifulStoneSoup class is deprecated" in str(w[0].message))
|
||||
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 08:59:57 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user