15
0
forked from pool/python-parsel

Accepting request 1056833 from devel:languages:python

- 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/request/show/1056833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parsel?expand=0&rev=10
This commit is contained in:
2023-01-08 20:25:37 +00:00
committed by Git OBS Bridge
5 changed files with 25 additions and 1527 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70efef0b651a996cceebc69e55a85eb2233be0890959203ba7c3a03c72725c79
size 41812

3
parsel-1.7.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0254133cb0304de13fcc4857bb8214ff70d698872761fa6be8374e1bbbd58192
size 46036

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sat Jan 7 23:13:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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)
-------------------------------------------------------------------
Mon Oct 17 14:31:56 UTC 2022 - pgajdos@suse.com

View File

@@ -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