From 86d5c3a9545e9afc95ab3690f978e7773bf132af59993bcbb16d88560405d717 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 13 Aug 2023 18:55:53 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=204.9.3:=20=20=20*=20``lxml.obj?= =?UTF-8?q?ectify``=20accepted=20non-decimal=20numbers=20like=20``=C2=B2?= =?UTF-8?q?=C2=B2=C2=B2``=20=20=20=20=20as=20integers.=20=20=20*=20A=20mem?= =?UTF-8?q?ory=20leak=20in=20``lxml.html.clean``=20was=20resolved=20by=20?= =?UTF-8?q?=20=20=20=20switching=20to=20Cython=200.29.34+.=20=20=20*=20GH#?= =?UTF-8?q?348:=20URL=20checking=20in=20the=20HTML=20cleaner=20was=20impro?= =?UTF-8?q?ved.=20=20=20*=20GH#371,=20GH#373:=20Some=20regex=20strings=20w?= =?UTF-8?q?ere=20changed=20to=20raw=20=20=20=20=20strings=20to=20fix=20Pyt?= =?UTF-8?q?hon=20warnings.=20=20=20*=20Built=20with=20Cython=200.29.36=20t?= =?UTF-8?q?o=20adapt=20to=20changes=20in=20Python=203.12.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=185 --- ISO-Schematron-schema-optional.patch | 24 ++++++++++++------------ lxml-4.9.2.tar.gz | 3 --- lxml-4.9.3.tar.gz | 3 +++ python-lxml.changes | 13 +++++++++++++ python-lxml.spec | 4 ++-- 5 files changed, 30 insertions(+), 17 deletions(-) delete mode 100644 lxml-4.9.2.tar.gz create mode 100644 lxml-4.9.3.tar.gz diff --git a/ISO-Schematron-schema-optional.patch b/ISO-Schematron-schema-optional.patch index 8306ce9..4c7bd46 100644 --- a/ISO-Schematron-schema-optional.patch +++ b/ISO-Schematron-schema-optional.patch @@ -12,13 +12,13 @@ See https://bugs.launchpad.net/lxml/+bug/2024343 src/lxml/isoschematron/__init__.py | 24 +++++++++++++++++++----- 3 files changed, 36 insertions(+), 5 deletions(-) -Index: lxml-4.9.2/CHANGES.txt +Index: lxml-4.9.3/CHANGES.txt =================================================================== ---- lxml-4.9.2.orig/CHANGES.txt -+++ lxml-4.9.2/CHANGES.txt -@@ -2,6 +2,14 @@ - lxml changelog - ============== +--- lxml-4.9.3.orig/CHANGES.txt ++++ lxml-4.9.3/CHANGES.txt +@@ -27,6 +27,14 @@ Other changes + * Built with Cython 0.29.36 to adapt to changes in Python 3.12. + +* LP#2024343: The validation of the schema file itself is now optional in the + ISO-Schematron implementation. This was done because some lxml distributions @@ -31,10 +31,10 @@ Index: lxml-4.9.2/CHANGES.txt 4.9.2 (2022-12-13) ================== -Index: lxml-4.9.2/doc/validation.txt +Index: lxml-4.9.3/doc/validation.txt =================================================================== ---- lxml-4.9.2.orig/doc/validation.txt -+++ lxml-4.9.2/doc/validation.txt +--- lxml-4.9.3.orig/doc/validation.txt ++++ lxml-4.9.3/doc/validation.txt @@ -615,6 +615,15 @@ The usage of validation phases is a uniq a very powerful tool e.g. for establishing validation stages or to provide different validators for different "validation audiences". @@ -51,10 +51,10 @@ Index: lxml-4.9.2/doc/validation.txt (Pre-ISO-Schematron) -------------------- -Index: lxml-4.9.2/src/lxml/isoschematron/__init__.py +Index: lxml-4.9.3/src/lxml/isoschematron/__init__.py =================================================================== ---- lxml-4.9.2.orig/src/lxml/isoschematron/__init__.py -+++ lxml-4.9.2/src/lxml/isoschematron/__init__.py +--- lxml-4.9.3.orig/src/lxml/isoschematron/__init__.py ++++ lxml-4.9.3/src/lxml/isoschematron/__init__.py @@ -61,10 +61,16 @@ iso_svrl_for_xslt1 = _etree.XSLT(_etree. svrl_validation_errors = _etree.XPath( '//svrl:failed-assert', namespaces={'svrl': SVRL_NS}) diff --git a/lxml-4.9.2.tar.gz b/lxml-4.9.2.tar.gz deleted file mode 100644 index 14fbb01..0000000 --- a/lxml-4.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67 -size 3682202 diff --git a/lxml-4.9.3.tar.gz b/lxml-4.9.3.tar.gz new file mode 100644 index 0000000..c3fc711 --- /dev/null +++ b/lxml-4.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48628bd53a426c9eb9bc066a923acaa0878d1e86129fd5359aee99285f4eed9c +size 3572158 diff --git a/python-lxml.changes b/python-lxml.changes index 3718c1e..dfb5304 100644 --- a/python-lxml.changes +++ b/python-lxml.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sun Aug 13 18:55:19 UTC 2023 - Dirk Müller + +- update to 4.9.3: + * ``lxml.objectify`` accepted non-decimal numbers like ``²²²`` + as integers. + * A memory leak in ``lxml.html.clean`` was resolved by + switching to Cython 0.29.34+. + * GH#348: URL checking in the HTML cleaner was improved. + * GH#371, GH#373: Some regex strings were changed to raw + strings to fix Python warnings. + * Built with Cython 0.29.36 to adapt to changes in Python 3.12. + ------------------------------------------------------------------- Fri Jul 14 15:42:00 UTC 2023 - Matej Cepl diff --git a/python-lxml.spec b/python-lxml.spec index 75d994c..b762d3c 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-lxml -Version: 4.9.2 +Version: 4.9.3 Release: 0 Summary: Pythonic XML processing library License: BSD-3-Clause AND GPL-2.0-or-later @@ -42,7 +42,7 @@ Patch3: ISO-Schematron-schema-optional.patch # PATCH-FIX-UPSTREAM remove-ISO-Schematron-schema.patch gl#fedora/legal/fedora-license-data/-#154 mcepl@suse.com # Actually remove the schema Patch4: remove-ISO-Schematron-schema.patch -BuildRequires: %{python_module Cython >= 0.29.7} +BuildRequires: %{python_module Cython >= 0.29.7 with %python-Cython < 3} BuildRequires: %{python_module base} BuildRequires: %{python_module cssselect >= 0.9.1} BuildRequires: %{python_module setuptools >= 18.0.1}