forked from pool/python-beautifulsoup4
Python3 moved to devel:languages:python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=19
This commit is contained in:
parent
79789ea355
commit
c637b39743
@ -1,76 +0,0 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 18 13:30:00 UTC 2013 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 4.2.0
|
||||
* The Tag.select() method now supports a much wider variety of CSS
|
||||
selectors.
|
||||
- Added support for the adjacent sibling combinator (+) and the
|
||||
general sibling combinator (~). Tests by "liquider". [bug=1082144]
|
||||
- The combinators (>, +, and ~) can now combine with any supported
|
||||
selector, not just one that selects based on tag name.
|
||||
- Added limited support for the "nth-of-type" pseudo-class. Code
|
||||
by Sven Slootweg. [bug=1109952]
|
||||
* The BeautifulSoup class is now aliased to "_s" and "_soup", making
|
||||
it quicker to type the import statement in an interactive session
|
||||
The alias may change in the future, so don't use this in code you're
|
||||
going to run more than once.
|
||||
* Added the 'diagnose' submodule, which includes several useful
|
||||
functions for reporting problems and doing tech support.
|
||||
- diagnose(data) tries the given markup on every installed parser,
|
||||
reporting exceptions and displaying successes. If a parser is not
|
||||
installed, diagnose() mentions this fact.
|
||||
- lxml_trace(data, html=True) runs the given markup through lxml's
|
||||
XML parser or HTML parser, and prints out the parser events as
|
||||
they happen. This helps you quickly determine whether a given
|
||||
problem occurs in lxml code or Beautiful Soup code.
|
||||
- htmlparser_trace(data) is the same thing, but for Python's
|
||||
built-in HTMLParser class.
|
||||
* In an HTML document, the contents of a <script> or <style> tag will
|
||||
no longer undergo entity substitution by default. XML documents work
|
||||
the same way they did before. [bug=1085953]
|
||||
* Methods like get_text() and properties like .strings now only give
|
||||
you strings that are visible in the document--no comments or
|
||||
processing commands. [bug=1050164]
|
||||
* The prettify() method now leaves the contents of <pre> tags
|
||||
alone. [bug=1095654]
|
||||
* Fix a bug in the html5lib treebuilder which sometimes created
|
||||
disconnected trees. [bug=1039527]
|
||||
* Fix a bug in the lxml treebuilder which crashed when a tag included
|
||||
an attribute from the predefined "xml:" namespace. [bug=1065617]
|
||||
* Fix a bug by which keyword arguments to find_parent() were not
|
||||
being passed on. [bug=1126734]
|
||||
* Stop a crash when unwisely messing with a tag that's been
|
||||
decomposed. [bug=1097699]
|
||||
* Now that lxml's segfault on invalid doctype has been fixed, fixed a
|
||||
corresponding problem on the Beautiful Soup end that was previously
|
||||
invisible. [bug=984936]
|
||||
* Fixed an exception when an overspecified CSS selector didn't match
|
||||
anything. Code by Stefaan Lippens. [bug=1168167]
|
||||
- Build documentation and add doc sub-package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 12 14:09:52 UTC 2013 - toddrme2178@gmail.com
|
||||
|
||||
- Use explicit file list
|
||||
- Fix building on openSUSE 12.1 and 12.2
|
||||
- Use recommended lxml parser instead of native one
|
||||
(native fails fails for some python versions)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 12 12:03:05 UTC 2013 - idonmez@suse.com
|
||||
|
||||
- Fix runtime python dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 9 21:15:18 UTC 2013 - cfarrell@suse.com
|
||||
|
||||
- license update: MIT
|
||||
See COPYING.txt
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 10 18:52:45 UTC 2012 - nmo.marques@gmail.com
|
||||
|
||||
- initial package from version 4.1.3
|
||||
- based on spec file from python-beautifulsoup
|
||||
- requires python >= 2.6
|
||||
|
@ -1,98 +0,0 @@
|
||||
#
|
||||
# spec file for package python3-beautifulsoup4
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define _name beautifulsoup4
|
||||
Name: python3-%{_name}
|
||||
Version: 4.2.0
|
||||
Release: 0
|
||||
Summary: HTML/XML Parser for Quick-Turnaround Applications Like Screen-Scraping
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.crummy.com/software/BeautifulSoup/
|
||||
Source: http://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python3-2to3
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-lxml
|
||||
BuildRequires: python3-nose
|
||||
Requires: python3-lxml
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Beautiful Soup is a Python HTML/XML parser designed for quick turnaround
|
||||
projects like screen-scraping. Three features make it powerful:
|
||||
|
||||
* Beautiful Soup won't choke if you give it bad markup. It yields a parse tree
|
||||
that makes approximately as much sense as your original document. This is
|
||||
usually good enough to collect the data you need and run away
|
||||
|
||||
* Beautiful Soup provides a few simple methods and Pythonic idioms for
|
||||
navigating, searching, and modifying a parse tree: a toolkit for dissecting a
|
||||
document and extracting what you need. You don't have to create a custom
|
||||
parser for each application
|
||||
|
||||
* Beautiful Soup automatically converts incoming documents to Unicode and
|
||||
outgoing documents to UTF-8. You don't have to think about encodings, unless
|
||||
the document doesn't specify an encoding and Beautiful Soup can't autodetect
|
||||
one. Then you just have to specify the original encoding
|
||||
|
||||
Beautiful Soup parses anything you give it, and does the tree traversal stuff
|
||||
for you. You can tell it "Find all the links", or "Find all the links of class
|
||||
externalLink", or "Find all the links whose urls match "foo.com", or "Find the
|
||||
table heading that's got bold text, then give me that text."
|
||||
|
||||
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.
|
||||
Beautiful Soup.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Recommends: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
Documentation and help files for %{name}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python3 setup.py build
|
||||
|
||||
%install
|
||||
python3 setup.py install \
|
||||
--prefix=%{_prefix} \
|
||||
--root=%{buildroot}
|
||||
cd doc
|
||||
make html
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS.txt COPYING.txt
|
||||
%{python3_sitelib}/bs4/
|
||||
%{python3_sitelib}/%{_name}-%{version}-py*.egg-info
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc NEWS.txt README.txt TODO.txt
|
||||
%doc doc/build/html
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user