From 6ea4a22652a638202d5106da3080ed714013475d7a5c780b4c24826b31f7836b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 20 Dec 2023 21:54:39 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-parsel?expand=0&rev=23 --- parsel-1.7.0.tar.gz | 3 --- parsel-1.8.1.tar.gz | 3 +++ python-parsel.changes | 22 +++++++++++++++++++++- python-parsel.spec | 6 +++++- 4 files changed, 29 insertions(+), 5 deletions(-) delete mode 100644 parsel-1.7.0.tar.gz create mode 100644 parsel-1.8.1.tar.gz diff --git a/parsel-1.7.0.tar.gz b/parsel-1.7.0.tar.gz deleted file mode 100644 index 3e919d1..0000000 --- a/parsel-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0254133cb0304de13fcc4857bb8214ff70d698872761fa6be8374e1bbbd58192 -size 46036 diff --git a/parsel-1.8.1.tar.gz b/parsel-1.8.1.tar.gz new file mode 100644 index 0000000..1a3cbfc --- /dev/null +++ b/parsel-1.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aff28e68c9b3f1a901db2a4e3f158d8480a38724d7328ee751c1a4e1c1801e39 +size 50881 diff --git a/python-parsel.changes b/python-parsel.changes index ab8fc33..2c76fa1 100644 --- a/python-parsel.changes +++ b/python-parsel.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed Dec 20 21:53:12 UTC 2023 - Dirk Müller + +- 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 @@ -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. diff --git a/python-parsel.spec b/python-parsel.spec index d273bac..98176bb 100644 --- a/python-parsel.spec +++ b/python-parsel.spec @@ -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