Accepting request 681724 from devel:languages:python
- Update to 4.3.2:
* Crash in 4.3.1 when appending a child subtree with certain text nodes.
- Update to v4.3.1
* Fixed crash when appending a child subtree that contains unsubstituted
entity references
- from v4.3.0
* Features
+ The module ``lxml.sax`` is compiled using Cython in order to speed it up.
+ lxml.sax.ElementTreeProducer now preserves the namespace prefixes.
If two prefixes point to the same URI, the first prefix in alphabetical
order is used.
+ Updated ISO-Schematron implementation to 2013 version (now MIT licensed)
and the corresponding schema to the 2016 version (with optional "properties").
* Other
+ Support for Python 2.6 and 3.3 was removed.
+ The minimum dependency versions were raised to libxml2 2.9.2 and libxslt 1.1.27,
which were released in 2014 and 2012 respectively.
- from v4.2.6
* Fix a DeprecationWarning in Py3.7+.
* Import warnings in Python 3.6+ were resolved.
- Remove no longer needed
0001-Make-test-more-resilient-against-changes-in-latest-l.patch
OBS-URL: https://build.opensuse.org/request/show/681724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=70
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
From acef361ca80ff9afd828d91c98ea91c92f9d09af Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Behnel <stefan_ml@behnel.de>
|
||||
Date: Sat, 4 Aug 2018 12:56:14 +0200
|
||||
Subject: [PATCH] Make test more resilient against changes in latest libxslt
|
||||
releases.
|
||||
|
||||
---
|
||||
src/lxml/tests/test_threading.py | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/lxml/tests/test_threading.py b/src/lxml/tests/test_threading.py
|
||||
index 8948c3ec..5ede3f80 100644
|
||||
--- a/src/lxml/tests/test_threading.py
|
||||
+++ b/src/lxml/tests/test_threading.py
|
||||
@@ -130,7 +130,7 @@ class ThreadingTestCase(HelperTestCase):
|
||||
<xsl:template match="tag" />
|
||||
<!-- extend time for parsing + transform -->
|
||||
''' + '\n'.join('<xsl:template match="tag%x" />' % i for i in range(200)) + '''
|
||||
- <xsl:foo />
|
||||
+ <xsl:UnExpectedElement />
|
||||
</xsl:stylesheet>''')
|
||||
self.assertRaises(etree.XSLTParseError,
|
||||
etree.XSLT, style)
|
||||
@@ -153,9 +153,10 @@ class ThreadingTestCase(HelperTestCase):
|
||||
self.assertTrue(len(log))
|
||||
if last_log is not None:
|
||||
self.assertEqual(len(last_log), len(log))
|
||||
- self.assertEqual(4, len(log))
|
||||
+ self.assertTrue(len(log) >= 2, len(log))
|
||||
for error in log:
|
||||
- self.assertTrue(':ERROR:XSLT:' in str(error))
|
||||
+ self.assertTrue(':ERROR:XSLT:' in str(error), str(error))
|
||||
+ self.assertTrue(any('UnExpectedElement' in str(error) for error in log), log)
|
||||
last_log = log
|
||||
|
||||
def test_thread_xslt_apply_error_log(self):
|
||||
--
|
||||
2.18.0
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:36720698c29e7a9626a0dc802ef8885f8f0239bfd1689628ecd459a061f2807f
|
||||
size 4414081
|
||||
3
lxml-4.3.2.tar.gz
Normal file
3
lxml-4.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3a9d8521c89bf6f2a929c3d12ad3ad7392c774c327ea809fd08a13be6b3bc05f
|
||||
size 4380761
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de05b728b81bcf91c21f3d212a137bbf3971c46950d3ad386d5ca75366e3db58
|
||||
size 1148728
|
||||
3
lxmldoc-4.3.2.pdf
Normal file
3
lxmldoc-4.3.2.pdf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d941b4c50e898c3fa0f2800b26ec527bd27577746e41a02a68e72ed23c2ba494
|
||||
size 1151919
|
||||
@@ -1,3 +1,33 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 5 11:27:57 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 4.3.2:
|
||||
* Crash in 4.3.1 when appending a child subtree with certain text nodes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 07:33:12 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Update to v4.3.1
|
||||
* Fixed crash when appending a child subtree that contains unsubstituted
|
||||
entity references
|
||||
- from v4.3.0
|
||||
* Features
|
||||
+ The module ``lxml.sax`` is compiled using Cython in order to speed it up.
|
||||
+ lxml.sax.ElementTreeProducer now preserves the namespace prefixes.
|
||||
If two prefixes point to the same URI, the first prefix in alphabetical
|
||||
order is used.
|
||||
+ Updated ISO-Schematron implementation to 2013 version (now MIT licensed)
|
||||
and the corresponding schema to the 2016 version (with optional "properties").
|
||||
* Other
|
||||
+ Support for Python 2.6 and 3.3 was removed.
|
||||
+ The minimum dependency versions were raised to libxml2 2.9.2 and libxslt 1.1.27,
|
||||
which were released in 2014 and 2012 respectively.
|
||||
- from v4.2.6
|
||||
* Fix a DeprecationWarning in Py3.7+.
|
||||
* Import warnings in Python 3.6+ were resolved.
|
||||
- Remove no longer needed
|
||||
0001-Make-test-more-resilient-against-changes-in-latest-l.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:50:12 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-lxml
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,15 +18,14 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-lxml
|
||||
Version: 4.2.5
|
||||
Version: 4.3.2
|
||||
Release: 0
|
||||
Summary: Pythonic XML processing library
|
||||
License: BSD-3-Clause AND GPL-2.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: http://lxml.de/
|
||||
URL: http://lxml.de/
|
||||
Source: https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz
|
||||
Source1: http://lxml.de/lxmldoc-%{version}.pdf
|
||||
Patch0: 0001-Make-test-more-resilient-against-changes-in-latest-l.patch
|
||||
Source1: https://lxml.de/lxmldoc-%{version}.pdf
|
||||
BuildRequires: %{python_module Cython >= 0.26.1}
|
||||
BuildRequires: %{python_module cssselect >= 0.9.1}
|
||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||
@@ -43,12 +42,13 @@ provides convenient access to these libraries using the ElementTree
|
||||
API. It extends the ElementTree API significantly to offer support for XPath,
|
||||
RelaxNG, XML Schema, XSLT and C14N.
|
||||
|
||||
%package doc
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for python-lxml, an XML processing library
|
||||
Group: Documentation/Other
|
||||
Provides: %{python_module doc = %{version}}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
%description -n %{name}-doc
|
||||
lxml is a Pythonic binding for the libxml2 and libxslt libraries. It
|
||||
provides convenient access to these libraries using the ElementTree
|
||||
API. It extends the ElementTree API significantly to offer support for XPath,
|
||||
@@ -71,7 +71,6 @@ This package contains header files needed to use lxml's C API.
|
||||
|
||||
%prep
|
||||
%setup -q -n lxml-%{version}
|
||||
%patch0 -p1
|
||||
cp %{SOURCE1} .
|
||||
|
||||
# remove generated files
|
||||
@@ -113,9 +112,9 @@ make %{?_smp_mflags} test3
|
||||
%{python_sitearch}/lxml/*.h
|
||||
%{python_sitearch}/lxml/includes/*.h
|
||||
|
||||
%files %{python_files doc}
|
||||
%files -n %{name}-doc
|
||||
%license LICENSES.txt
|
||||
%doc doc/html
|
||||
%doc lxmldoc-%{version}.pdf
|
||||
%doc lxmldoc-*.pdf
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user