forked from pool/python-parsel
- update to 1.7.0:
* Add PEP 561-style type information * Support for Python 2.7, 3.5 and 3.6 is removed * Support for Python 3.9-3.11 is added * Very large documents (with deep nesting or long tag content) can now be parsed, and ``Selector`` now takes a new argument ``huge_tree`` to disable this * Support for new features of cssselect 1.2.0 is added * The ``Selector.remove()`` and ``SelectorList.remove()`` methods are deprecated and replaced with the new ``Selector.drop()`` and ``SelectorList.drop()`` methods which don't delete text after the dropped elements when used in the HTML mode. - drop python-parsel-drop-python-2.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parsel?expand=0&rev=21
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-parsel
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,24 +19,23 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-parsel
|
||||
Version: 1.6.0
|
||||
Version: 1.7.0
|
||||
Release: 0
|
||||
Summary: Library to extract data from HTML and XML using XPath and CSS selectors
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/scrapy/parsel
|
||||
Source: https://files.pythonhosted.org/packages/source/p/parsel/parsel-%{version}.tar.gz
|
||||
# https://github.com/scrapy/parsel/commit/ddb3708b9a191ca02bd20e621f43c68cc92f5d6b
|
||||
Patch0: python-parsel-drop-python-2.patch
|
||||
BuildRequires: %{python_module cssselect >= 0.9}
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module w3lib >= 1.8.0}
|
||||
BuildRequires: %{python_module w3lib >= 1.19.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-cssselect >= 0.9
|
||||
Requires: python-lxml
|
||||
Requires: python-w3lib >= 1.8.0
|
||||
Requires: python-w3lib >= 1.19.0
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-functools32
|
||||
|
||||
Reference in New Issue
Block a user