Accepting request 674867 from home:jayvdb:coala:python3-bears

- Update from v4.2.5 to v4.3.1
- Remove no longer needed
  0001-Make-test-more-resilient-against-changes-in-latest-l.patch

OBS-URL: https://build.opensuse.org/request/show/674867
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=117
This commit is contained in:
Tomáš Chvátal 2019-02-14 08:36:30 +00:00 committed by Git OBS Bridge
parent e421144eec
commit b4b89ea844
7 changed files with 36 additions and 51 deletions

View File

@ -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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36720698c29e7a9626a0dc802ef8885f8f0239bfd1689628ecd459a061f2807f
size 4414081

3
lxml-4.3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da5e7e941d6e71c9c9a717c93725cda0708c2474f532e3680ac5e39ec57d224d
size 4380082

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de05b728b81bcf91c21f3d212a137bbf3971c46950d3ad386d5ca75366e3db58
size 1148728

3
lxmldoc-4.3.0.pdf Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d227540c3aaa57a9fc4700362f7e1492ede3aa8a7d16554205748391b8e5db4
size 1150779

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
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>

View File

@ -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
@ -16,17 +16,18 @@
#
%define lxml_version 4.3
%define lxml_patch_version 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lxml
Version: 4.2.5
Version: %{lxml_version}.%{lxml_patch_version}
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/
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/%{lxml_version}/lxmldoc-%{lxml_version}.0.pdf
BuildRequires: %{python_module Cython >= 0.26.1}
BuildRequires: %{python_module cssselect >= 0.9.1}
BuildRequires: %{python_module setuptools >= 18.0.1}
@ -71,7 +72,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
@ -116,6 +116,6 @@ make %{?_smp_mflags} test3
%files %{python_files doc}
%license LICENSES.txt
%doc doc/html
%doc lxmldoc-%{version}.pdf
%doc lxmldoc-*.pdf
%changelog