Hello community,

here is the log from the commit of package python-lxml for openSUSE:Factory 
checked in at 2014-11-06 16:49:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lxml (Old)
 and      /work/SRC/openSUSE:Factory/.python-lxml.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lxml"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lxml/python-lxml.changes  2014-04-26 
19:33:59.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-lxml.new/python-lxml.changes     
2014-11-06 16:50:32.000000000 +0100
@@ -1,0 +2,44 @@
+Tue Nov  4 07:43:22 UTC 2014 - [email protected]
+
+- Update to 3.4.0
+  * Features added
+  ** xmlfile(buffered=False) disables output buffering and flushes the
+     content after each API operation (starting/ending element blocks or
+     writes). A new method xf.flush() can alternatively be used to
+     explicitly flush the output.
+  ** lxml.html.document_fromstring has a new option ensure_head_body=True
+     which will add an empty head and/or body element to the result
+     document if missing.
+  ** lxml.html.iterlinks now returns links inside meta refresh tags.
+  ** New XMLParser option collect_ids=False to disable ID hash table
+     creation. This can substantially speed up parsing of documents with
+     many different IDs that are not used.
+  ** The parser uses per-document hash tables for XML IDs. This reduces
+     the load of the global parser dict and speeds up parsing for
+     documents with many different IDs.
+  ** ElementTree.getelementpath(element) returns a structural ElementPath
+     expression for the given element, which can be used for lookups later.
+  ** xmlfile() accepts a new argument close=True to close file(-like)
+     objects after writing to them. Before, xmlfile() only closed the file
+     if it had opened it internally.
+  ** Allow "bytearray" type for ASCII text input.
+
+  * Other changes
+  ** LP#400588: decoding errors have become hard errors even in recovery
+     mode. Previously, they could lead to an internal tree representation
+     in a mixed encoding state, which lead to very late errors or even
+     silently incorrect behaviour during tree traversal or serialisation.
+  ** Requires Python 2.6, 2.7, 3.2 or later. No longer supports Python 2.4,
+     2.5 and 3.1, use lxml 3.3.x for those.
+  ** Requires libxml2 2.7.0 or later and libxslt 1.1.23 or later, use lxml
+     3.3.x with older versions.
+- Add updatream patch lxml-dont-depend-on-URL-formatting-in-test.patch
+  * fix test
+- Changes in 3.3.6
+  * Bugs fixed
+  ** Prevent tree cycle creation when adding Elements as siblings.
+  ** LP#1361948: crash when deallocating Element siblings without parent.
+  ** LP#1354652: crash when traversing internally loaded documents in XSLT
+     extension functions.
+
+-------------------------------------------------------------------

Old:
----
  lxml-3.3.5.tgz
  lxmldoc-3.3.5.pdf

New:
----
  lxml-3.4.0.tar.gz
  lxml-dont-depend-on-URL-formatting-in-test.patch
  lxmldoc-3.4.0.pdf

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-lxml.spec ++++++
--- /var/tmp/diff_new_pack.170bqU/_old  2014-11-06 16:50:33.000000000 +0100
+++ /var/tmp/diff_new_pack.170bqU/_new  2014-11-06 16:50:33.000000000 +0100
@@ -17,16 +17,17 @@
 
 
 Name:           python-lxml
-Version:        3.3.5
+Version:        3.4.0
 Release:        0
 Summary:        Powerful and Pythonic XML processing library
 License:        BSD-3-Clause and GPL-2.0+
 Group:          Development/Languages/Python
 Url:            http://lxml.de/
-Source:         http://lxml.de/files/lxml-%{version}.tgz
+Source:         
http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz
 Source1:        http://lxml.de/lxmldoc-%{version}.pdf
-BuildRequires:  libxml2-devel
-BuildRequires:  libxslt-devel
+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
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -61,6 +62,7 @@
 
 %prep
 %setup -q -n lxml-%{version}
+%patch0 -p1
 cp %{SOURCE1} .
 
 %build

++++++ lxml-dont-depend-on-URL-formatting-in-test.patch ++++++
>From 720e43d6a0036ac12c438a5e5c1914d30d8603ff Mon Sep 17 00:00:00 2001
From: Stefan Behnel <[email protected]>
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

++++++ lxmldoc-3.3.5.pdf -> lxmldoc-3.4.0.pdf ++++++
(binary differes)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to