15
0
forked from pool/python-parsel

Accepting request 1134335 from devel:languages:python

- update to 1.8.1:
  * Remove a Sphinx reference from NEWS to fix the PyPI
    description
  * Add support for JMESPath: you can now create a selector for a
    JSON document and call ``Selector.jmespath()``.
  * Selectors can now be constructed from ``bytes`` (using the
    ``body`` and ``encoding`` arguments) instead of ``str``
    (using the ``text`` argument), so that there is no internal
    conversion from ``str`` to ``bytes`` and the memory
    usage is lower.
  * Typing improvements
  * The ``pkg_resources`` module (which was absent from the
    requirements) is no longer used
  * New requirements:
  * ``jmespath``
  * ``typing_extensions`` (on Python 3.7)

- Initial package build.

OBS-URL: https://build.opensuse.org/request/show/1134335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parsel?expand=0&rev=11
This commit is contained in:
2023-12-21 22:38:29 +00:00
committed by Git OBS Bridge
4 changed files with 29 additions and 5 deletions

View File

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

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

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

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Wed Dec 20 21:53:12 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.8.1:
* Remove a Sphinx reference from NEWS to fix the PyPI
description
* Add support for JMESPath: you can now create a selector for a
JSON document and call ``Selector.jmespath()``.
* Selectors can now be constructed from ``bytes`` (using the
``body`` and ``encoding`` arguments) instead of ``str``
(using the ``text`` argument), so that there is no internal
conversion from ``str`` to ``bytes`` and the memory
usage is lower.
* Typing improvements
* The ``pkg_resources`` module (which was absent from the
requirements) is no longer used
* New requirements:
* ``jmespath``
* ``typing_extensions`` (on Python 3.7)
-------------------------------------------------------------------
Sat Jan 7 23:13:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
@@ -102,5 +122,5 @@ Thu Dec 21 22:54:25 UTC 2017 - mpluskal@suse.com
-------------------------------------------------------------------
Thu Jun 2 17:42:59 UTC 2016 - jacobwinski@gmail.com
- Initial package build.
- Initial package build.

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-parsel
Version: 1.7.0
Version: 1.8.1
Release: 0
Summary: Library to extract data from HTML and XML using XPath and CSS selectors
License: BSD-3-Clause
@@ -27,14 +27,18 @@ Group: Development/Languages/Python
URL: https://github.com/scrapy/parsel
Source: https://files.pythonhosted.org/packages/source/p/parsel/parsel-%{version}.tar.gz
BuildRequires: %{python_module cssselect >= 0.9}
BuildRequires: %{python_module jmespath}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing-extensions}
BuildRequires: %{python_module w3lib >= 1.19.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cssselect >= 0.9
Requires: python-jmespath
Requires: python-lxml
Requires: python-typing-extensions
Requires: python-w3lib >= 1.19.0
BuildArch: noarch
%ifpython2