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 16445e8..1a6c506 100644 --- a/python-beautifulsoup4.changes +++ b/python-beautifulsoup4.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +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 + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + ------------------------------------------------------------------- Mon Jul 22 16:18:23 UTC 2019 - Todd R diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index f0ae2b1..cf5b21c 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -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