forked from pool/python-beautifulsoup4
Accepting request 952905 from devel:languages:python
- Update to 4.10.0:
* This is the first release of Beautiful Soup to only support Python 3.
* The behavior of methods like .get_text() and .strings now differs
depending on the type of tag.
* NavigableString and its subclasses now implement the get_text()
method, as well as the properties .strings and
.stripped_strings.
* The 'html5' formatter now treats attributes whose values are the
empty string as HTML boolean attributes.
* The 'replace_with()' method now takes a variable number of arguments,
and can be used to replace a single element with a sequence of elements.
* Corrected output when the namespace prefix associated with a
namespaced attribute is the empty string, as opposed to
None.
* Performance improvement when processing tags that speeds up overall
tree construction by 2%. Patch by Morotti. [bug=1899358]
* Corrected the use of special string container classes in cases when a
single tag may contain strings with different containers; such as
the <template> tag, which may contain both TemplateString objects
and Comment objects.
* The html.parser tree builder can now handle named entities
found in the HTML5 spec in much the same way that the html5lib
tree builder does.
* Added a second way to pass specify encodings to UnicodeDammit and
EncodingDetector, based on the order of precedence defined in the
HTML5 spec.
* Improve the warning issued when a directory name (as opposed to
the name of a regular file) is passed as markup into the BeautifulSoup
constructor.
- Do not pass the directory to pytest.
OBS-URL: https://build.opensuse.org/request/show/952905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-beautifulsoup4?expand=0&rev=35
This commit is contained in:
3
beautifulsoup4-4.10.0.tar.gz
Normal file
3
beautifulsoup4-4.10.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c23ad23c521d818955a4151a67d81580319d4bf548d3d49f4223ae041ff98891
|
||||
size 399890
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:84729e322ad1d5b4d25f805bfa05b902dd96450f43842c4e99067d5e1369eb25
|
||||
size 376031
|
||||
@@ -1,3 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 9 10:14:27 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 4.10.0:
|
||||
* This is the first release of Beautiful Soup to only support Python 3.
|
||||
* The behavior of methods like .get_text() and .strings now differs
|
||||
depending on the type of tag.
|
||||
* NavigableString and its subclasses now implement the get_text()
|
||||
method, as well as the properties .strings and
|
||||
.stripped_strings.
|
||||
* The 'html5' formatter now treats attributes whose values are the
|
||||
empty string as HTML boolean attributes.
|
||||
* The 'replace_with()' method now takes a variable number of arguments,
|
||||
and can be used to replace a single element with a sequence of elements.
|
||||
* Corrected output when the namespace prefix associated with a
|
||||
namespaced attribute is the empty string, as opposed to
|
||||
None.
|
||||
* Performance improvement when processing tags that speeds up overall
|
||||
tree construction by 2%. Patch by Morotti. [bug=1899358]
|
||||
* Corrected the use of special string container classes in cases when a
|
||||
single tag may contain strings with different containers; such as
|
||||
the <template> tag, which may contain both TemplateString objects
|
||||
and Comment objects.
|
||||
* The html.parser tree builder can now handle named entities
|
||||
found in the HTML5 spec in much the same way that the html5lib
|
||||
tree builder does.
|
||||
* Added a second way to pass specify encodings to UnicodeDammit and
|
||||
EncodingDetector, based on the order of precedence defined in the
|
||||
HTML5 spec.
|
||||
* Improve the warning issued when a directory name (as opposed to
|
||||
the name of a regular file) is passed as markup into the BeautifulSoup
|
||||
constructor.
|
||||
- Do not pass the directory to pytest.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 10 18:34:16 UTC 2020 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-beautifulsoup4
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,9 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
Name: python-beautifulsoup4
|
||||
Version: 4.9.3
|
||||
Version: 4.10.0
|
||||
Release: 0
|
||||
Summary: HTML/XML Parser for Quick-Turnaround Applications Like Screen-Scraping
|
||||
License: MIT
|
||||
@@ -86,7 +86,7 @@ pushd doc && make html && rm build/html/.buildinfo build/html/objects.inv && po
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%pytest %{buildroot}%{$python_sitelib}/bs4/tests
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING.txt
|
||||
|
||||
Reference in New Issue
Block a user