forked from pool/python-beautifulsoup4
Accepting request 744767 from devel:languages:python
- 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
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/request/show/744767
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-beautifulsoup4?expand=0&rev=30
This commit is contained in:
@@ -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,23 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 16:18:23 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
|
||||
@@ -18,15 +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
|
||||
Group: Development/Libraries/Python
|
||||
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}
|
||||
@@ -68,7 +65,6 @@ Beautiful Soup.
|
||||
|
||||
%package -n python-beautifulsoup4-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Recommends: %{name} = %{version}
|
||||
Obsoletes: python2-beautifulsoup4-doc
|
||||
Obsoletes: python3-beautifulsoup4-doc
|
||||
@@ -78,7 +74,6 @@ Documentation and help files for %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -n beautifulsoup4-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -86,12 +81,12 @@ pushd doc && make html && rm build/html/.buildinfo build/html/objects.inv && po
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} %{buildroot}%{$python_sitelib}/bs4/tests
|
||||
%pytest %{buildroot}%{$python_sitelib}/bs4/tests
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING.txt
|
||||
|
||||
Reference in New Issue
Block a user