- update to 4.6.4:

* A new property ``system_url`` was added to DTD entities.
  * The ``STATIC_*`` variables in ``setup.py`` can now be passed via env vars.
- remove python-lxml-test_etree.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=151
This commit is contained in:
Dirk Mueller 2021-11-24 21:31:05 +00:00 committed by Git OBS Bridge
parent 6ac41a3f82
commit 10a671eb87
5 changed files with 12 additions and 32 deletions

View File

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

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

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

View File

@ -1,25 +0,0 @@
From 852ed1092bd80b6b9a51db24371047ec88843031 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Tue, 18 May 2021 22:02:02 +0200
Subject: [PATCH] Adapt a test to a behavioural change in libxml2 2.9.11+.
---
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 9cf70604b..42613dcbe 100644
--- a/src/lxml/tests/test_etree.py
+++ b/src/lxml/tests/test_etree.py
@@ -3036,7 +3036,10 @@ def test_subelement_nsmap(self):
def test_html_prefix_nsmap(self):
etree = self.etree
el = etree.HTML('<hha:page-description>aa</hha:page-description>').find('.//page-description')
- self.assertEqual({'hha': None}, el.nsmap)
+ if etree.LIBXML_VERSION < (2, 9, 11):
+ self.assertEqual({'hha': None}, el.nsmap)
+ else:
+ self.assertEqual({}, el.nsmap)
def test_getchildren(self):
Element = self.etree.Element

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Nov 24 21:23:34 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 4.6.4:
* A new property ``system_url`` was added to DTD entities.
* The ``STATIC_*`` variables in ``setup.py`` can now be passed via env vars.
- remove python-lxml-test_etree.patch (upstream)
-------------------------------------------------------------------
Tue Jun 1 19:15:10 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lxml
Version: 4.6.3
Version: 4.6.4
Release: 0
Summary: Pythonic XML processing library
License: BSD-3-Clause AND GPL-2.0-or-later
@ -26,8 +26,6 @@ Group: Development/Languages/Python
URL: https://lxml.de/
Source0: https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz
Source1: https://lxml.de/lxmldoc-4.5.2.pdf
# PATCH-FIX-UPSTREAM Adapt test_etree.py to a behavioural change in libxml2 2.9.11+
Patch0: python-lxml-test_etree.patch
BuildRequires: %{python_module Cython >= 0.29.7}
BuildRequires: %{python_module cssselect >= 0.9.1}
BuildRequires: %{python_module setuptools >= 18.0.1}
@ -73,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