Accepting request 298550 from home:Nijel:branches:devel:languages:python

- Drop lxml-dont-depend-on-URL-formatting-in-test.patch, merged upstream

- Update to 3.4.3:
  * Expression cache in ElementPath was ignored.  Fix by Changaco.
  * LP#1426868: Passing a default namespace and a prefixed namespace mapping
    as nsmap into ``xmlfile.element()`` raised a ``TypeError``.
  * LP#1421927: DOCTYPE system URLs were incorrectly quoted when containing
    double quotes.  Patch by Olli Pottonen.
  * LP#1419354: meta-redirect URLs were incorrectly processed by
    ``iterlinks()`` if preceded by whitespace.
  * LP#1415907: Crash when creating an XMLSchema from a non-root element
    of an XML document.
  * LP#1369362: HTML cleaning failed when hitting processing instructions
    with pseudo-attributes.
  * ``CDATA()`` wrapped content was rejected for tail text.
  * CDATA sections were not serialised as tail text of the top-level element.
  * New ``htmlfile`` HTML generator to accompany the incremental ``xmlfile``
    serialisation API.  Patch by Burak Arslan.
  * ``lxml.sax.ElementTreeContentHandler`` did not initialise its superclass.

OBS-URL: https://build.opensuse.org/request/show/298550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=80
This commit is contained in:
Michal Čihař 2015-04-22 10:54:29 +00:00 committed by Git OBS Bridge
parent 65b2dcf74a
commit 9053338adf
7 changed files with 34 additions and 39 deletions

View File

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

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

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

View File

@ -1,29 +0,0 @@
From 720e43d6a0036ac12c438a5e5c1914d30d8603ff Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Sun, 19 Oct 2014 08:39:35 +0200
Subject: [PATCH] do not depend on formatting of "file:" URL in test (differs
across libxml2 versions)
---
src/lxml/tests/test_etree.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
index 1aa8cd7..6dafe04 100644
--- a/src/lxml/tests/test_etree.py
+++ b/src/lxml/tests/test_etree.py
@@ -1284,7 +1284,10 @@ class ETreeOnlyTestCase(HelperTestCase):
class MyResolver(self.etree.Resolver):
def resolve(self, url, id, context):
- assertEqual(url, fileUrlInTestDir(test_url))
+ expected = fileUrlInTestDir(test_url)
+ url = url.replace('file://', 'file:') # depends on libxml2 version
+ expected = expected.replace('file://', 'file:')
+ assertEqual(url, expected)
return self.resolve_filename(
fileUrlInTestDir('test.dtd'), context)
--
1.8.4.5

View File

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

3
lxmldoc-3.4.3.pdf Normal file
View File

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

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Wed Apr 22 10:05:37 UTC 2015 - mcihar@suse.cz
- Drop lxml-dont-depend-on-URL-formatting-in-test.patch, merged upstream
-------------------------------------------------------------------
Wed Apr 22 09:32:06 UTC 2015 - mcihar@suse.cz
- Update to 3.4.3:
* Expression cache in ElementPath was ignored. Fix by Changaco.
* LP#1426868: Passing a default namespace and a prefixed namespace mapping
as nsmap into ``xmlfile.element()`` raised a ``TypeError``.
* LP#1421927: DOCTYPE system URLs were incorrectly quoted when containing
double quotes. Patch by Olli Pottonen.
* LP#1419354: meta-redirect URLs were incorrectly processed by
``iterlinks()`` if preceded by whitespace.
* LP#1415907: Crash when creating an XMLSchema from a non-root element
of an XML document.
* LP#1369362: HTML cleaning failed when hitting processing instructions
with pseudo-attributes.
* ``CDATA()`` wrapped content was rejected for tail text.
* CDATA sections were not serialised as tail text of the top-level element.
* New ``htmlfile`` HTML generator to accompany the incremental ``xmlfile``
serialisation API. Patch by Burak Arslan.
* ``lxml.sax.ElementTreeContentHandler`` did not initialise its superclass.
-------------------------------------------------------------------
Tue Nov 4 07:43:22 UTC 2014 - mlin@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-lxml
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@ -17,7 +17,7 @@
Name: python-lxml
Version: 3.4.0
Version: 3.4.3
Release: 0
Summary: Powerful and Pythonic XML processing library
License: BSD-3-Clause and GPL-2.0+
@ -25,7 +25,6 @@ Group: Development/Languages/Python
Url: http://lxml.de/
Source: http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz
Source1: http://lxml.de/lxmldoc-%{version}.pdf
Patch0: lxml-dont-depend-on-URL-formatting-in-test.patch
BuildRequires: libxml2-devel >= 2.7.0
BuildRequires: libxslt-devel >= 1.1.23
BuildRequires: python-Cython >= 0.20
@ -62,7 +61,6 @@ This package contains documentation for lxml (HTML and PDF).
%prep
%setup -q -n lxml-%{version}
%patch0 -p1
cp %{SOURCE1} .
%build