From 77ec295bda87cd57b575088cc40ff60e5b667ecd9a00da3d7980b8dac106e5dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 1 Mar 2019 11:53:37 +0000 Subject: [PATCH] - Do not generate doc for py2 and py3 variant they are the same so keep just one around - Update to 4.7.1: * Fixed a significant performance problem introduced in 4.7.0. [bug=1810617] * Fixed an incorrectly raised exception when inserting a tag before or after an identical tag. [bug=1810692] * Beautiful Soup will no longer try to keep track of namespaces that are not defined with a prefix; this can confuse soupselect. [bug=1810680] * Tried even harder to avoid the deprecation warning originally fixed in 4.6.1. [bug=1778909] * Beautiful Soup's CSS Selector implementation has been replaced by a dependency on Isaac Muse's SoupSieve project (the soupsieve package on PyPI). The good news is that SoupSieve has a much more robust and complete implementation of CSS selectors, resolving a large number of longstanding issues. The bad news is that from this point onward, SoupSieve must be installed if you want to use the select() method. * Added the PageElement.extend() method, which works like list.append(). [bug=1514970] * PageElement.insert_before() and insert_after() now take a variable number of arguments. [bug=1514970] * Fix a number of problems with the tree builder that caused trees that were superficially okay, but which fell apart when bits were extracted. Patch by Isaac Muse. [bug=1782928,1809910] * Fixed a problem with the tree builder in which elements that contained no content (such as empty comments and all-whitespace elements) were not being treated as part of the tree. Patch by Isaac Muse. [bug=1798699] * Fixed a problem with multi-valued attributes where the value contained whitespace. Thanks to Jens Svalgaard for the fix. [bug=1787453] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=66 --- beautifulsoup4-4.6.3.tar.gz | 3 --- beautifulsoup4-4.7.1.tar.gz | 3 +++ python-beautifulsoup4.changes | 37 +++++++++++++++++++++++++++++++++++ python-beautifulsoup4.spec | 24 +++++++++++------------ 4 files changed, 51 insertions(+), 16 deletions(-) delete mode 100644 beautifulsoup4-4.6.3.tar.gz create mode 100644 beautifulsoup4-4.7.1.tar.gz diff --git a/beautifulsoup4-4.6.3.tar.gz b/beautifulsoup4-4.6.3.tar.gz deleted file mode 100644 index b8f73f7..0000000 --- a/beautifulsoup4-4.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90f8e61121d6ae58362ce3bed8cd997efb00c914eae0ff3d363c32f9a9822d10 -size 167469 diff --git a/beautifulsoup4-4.7.1.tar.gz b/beautifulsoup4-4.7.1.tar.gz new file mode 100644 index 0000000..fb898d7 --- /dev/null +++ b/beautifulsoup4-4.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:945065979fb8529dd2f37dbb58f00b661bdbcbebf954f93b32fdf5263ef35348 +size 167065 diff --git a/python-beautifulsoup4.changes b/python-beautifulsoup4.changes index 39263d2..9e9700b 100644 --- a/python-beautifulsoup4.changes +++ b/python-beautifulsoup4.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Fri Mar 1 11:23:21 UTC 2019 - Tomáš Chvátal + +- Do not generate doc for py2 and py3 variant they are the same + so keep just one around +- Update to 4.7.1: + * Fixed a significant performance problem introduced in 4.7.0. [bug=1810617] + * Fixed an incorrectly raised exception when inserting a tag before or + after an identical tag. [bug=1810692] + * Beautiful Soup will no longer try to keep track of namespaces that + are not defined with a prefix; this can confuse soupselect. [bug=1810680] + * Tried even harder to avoid the deprecation warning originally fixed in + 4.6.1. [bug=1778909] + * Beautiful Soup's CSS Selector implementation has been replaced by a + dependency on Isaac Muse's SoupSieve project (the soupsieve package + on PyPI). The good news is that SoupSieve has a much more robust and + complete implementation of CSS selectors, resolving a large number + of longstanding issues. The bad news is that from this point onward, + SoupSieve must be installed if you want to use the select() method. + * Added the PageElement.extend() method, which works like list.append(). + [bug=1514970] + * PageElement.insert_before() and insert_after() now take a variable + number of arguments. [bug=1514970] + * Fix a number of problems with the tree builder that caused + trees that were superficially okay, but which fell apart when bits + were extracted. Patch by Isaac Muse. [bug=1782928,1809910] + * Fixed a problem with the tree builder in which elements that + contained no content (such as empty comments and all-whitespace + elements) were not being treated as part of the tree. Patch by Isaac + Muse. [bug=1798699] + * Fixed a problem with multi-valued attributes where the value + contained whitespace. Thanks to Jens Svalgaard for the + fix. [bug=1787453] + * Clarified ambiguous license statements in the source code. Beautiful + Soup is released under the MIT license, and has been since 4.4.0. + + ------------------------------------------------------------------- Thu Dec 6 14:47:30 UTC 2018 - Ondřej Súkup diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index cc5f46f..59dffd9 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -1,7 +1,7 @@ # # spec file for package python-beautifulsoup4 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-beautifulsoup4 -Version: 4.6.3 +Version: 4.7.1 Release: 0 Summary: HTML/XML Parser for Quick-Turnaround Applications Like Screen-Scraping License: MIT @@ -27,14 +27,13 @@ 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 -# Documentation requirements: -BuildRequires: %{python_module devel >= 2.6} -# Test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module soupsieve} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx +Requires: python-soupsieve Suggests: python-html5lib >= 0.999999 Suggests: python-lxml >= 3.4.4 BuildArch: noarch @@ -67,12 +66,14 @@ Valuable data that was once locked up in poorly-designed websites is now within your reach. Projects that would have taken hours take only minutes with Beautiful Soup. -%package doc +%package -n python-beautifulsoup4-doc Summary: Documentation for %{name} Group: Development/Libraries/Python Recommends: %{name} = %{version} +Obsoletes: python2-beautifulsoup4-doc +Obsoletes: python3-beautifulsoup4-doc -%description doc +%description -n python-beautifulsoup4-doc Documentation and help files for %{name} %prep @@ -89,18 +90,15 @@ pushd doc && make html && rm build/html/.buildinfo build/html/objects.inv && po %check export LANG=en_US.UTF-8 -%{python_expand export TESTROOT=%{buildroot}%{$python_sitelib}/bs4/tests -py.test-%{$python_bin_suffix} $TESTROOT -rm -rf $TESTROOT/__pycache__ -} +export PYTHONDONTWRITEBYTECODE=1 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} %{buildroot}%{$python_sitelib}/bs4/tests %files %{python_files} %license COPYING.txt -%doc AUTHORS.txt %{python_sitelib}/bs4/ %{python_sitelib}/beautifulsoup4-%{version}-py*.egg-info -%files %{python_files doc} +%files -n python-beautifulsoup4-doc %doc NEWS.txt README.md TODO.txt doc/build/html %changelog