* Now requires ``cssselect >= 1.2.0`` (this minimum version was
required since 1.8.0 but that wasn't properly recorded)
* Removed support for Python 3.7
* Added support for Python 3.12 and PyPy 3.10
* Fixed an exception when calling ``__str__`` or `__repr__`` on
some JSON selectors
* Code formatted with ``black``
* CI fixes and improvements
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parsel?expand=0&rev=25
* 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
* 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
- Update to version 1.5.1 (2018-10-25)
* ``has-class`` XPath function handles newlines and other separators
in class names properly;
* fixed parsing of HTML documents with null bytes;
* documentation improvements;
* Python 3.7 tests are run on CI; other test improvements.
- Update to version 1.5.0 (2018-07-04)
* New ``Selector.attrib`` and ``SelectorList.attrib`` properties which make
it easier to get attributes of HTML elements.
* CSS selectors became faster: compilation results are cached
(LRU cache is used for ``css2xpath``), so there is
less overhead when the same CSS expression is used several times.
* ``.get()`` and ``.getall()`` selector methods are documented and recommended
over ``.extract_first()`` and ``.extract()``.
* Various documentation tweaks and improvements.
OBS-URL: https://build.opensuse.org/request/show/649807
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parsel?expand=0&rev=8
* has-class XPath extension function;
* parsel.xpathfuncs.set_xpathfunc is a simplified way to register
XPath extensions;
* Selector.remove_namespaces now removes namespace declarations;
* Python 3.3 support is dropped;
* make htmlview command for easier Parsel docs development.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parsel?expand=0&rev=6