From 4d442dc0b3835c42eed253fdfe1afef71c1494b7c496c998a40c7be4c4e1b172 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 7 Jan 2023 23:17:41 +0000 Subject: [PATCH] - 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 --- parsel-1.6.0.tar.gz | 3 - parsel-1.7.0.tar.gz | 3 + python-parsel-drop-python-2.patch | 1518 ----------------------------- python-parsel.changes | 17 + python-parsel.spec | 11 +- 5 files changed, 25 insertions(+), 1527 deletions(-) delete mode 100644 parsel-1.6.0.tar.gz create mode 100644 parsel-1.7.0.tar.gz delete mode 100644 python-parsel-drop-python-2.patch diff --git a/parsel-1.6.0.tar.gz b/parsel-1.6.0.tar.gz deleted file mode 100644 index f9c082b..0000000 --- a/parsel-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70efef0b651a996cceebc69e55a85eb2233be0890959203ba7c3a03c72725c79 -size 41812 diff --git a/parsel-1.7.0.tar.gz b/parsel-1.7.0.tar.gz new file mode 100644 index 0000000..3e919d1 --- /dev/null +++ b/parsel-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0254133cb0304de13fcc4857bb8214ff70d698872761fa6be8374e1bbbd58192 +size 46036 diff --git a/python-parsel-drop-python-2.patch b/python-parsel-drop-python-2.patch deleted file mode 100644 index 078a812..0000000 --- a/python-parsel-drop-python-2.patch +++ /dev/null @@ -1,1518 +0,0 @@ -diff --git a/README.rst b/README.rst -index c1674f1..7bd8204 100644 ---- a/README.rst -+++ b/README.rst -@@ -26,7 +26,7 @@ Example (`open online demo`_): - .. code-block:: python - - >>> from parsel import Selector -- >>> selector = Selector(text=u""" -+ >>> selector = Selector(text=""" - -

Hello, Parsel!

-