Accepting request 574238 from home:mimi_vx:branches:devel:languages:python

- update to 4.1.1
 - ElementPath supports text predicates for current node, like "[.='text']".
 - ElementPath allows spaces in predicates.
 - Custom Element classes and XPath functions can now be registered with
    a decorator rather than explicit dict assignments.
 - LP#1722776: Requesting non-Element objects like comments from
    a document with PythonElementClassLookup could fail with a TypeError.

OBS-URL: https://build.opensuse.org/request/show/574238
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=103
This commit is contained in:
Ondřej Súkup 2018-02-08 14:04:12 +00:00 committed by Git OBS Bridge
parent 51efc15d33
commit bb68e69e3b
6 changed files with 24 additions and 19 deletions

View File

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

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

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

View File

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

3
lxmldoc-4.1.1.pdf Normal file
View File

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

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Feb 8 12:34:33 UTC 2018 - mimi.vx@gmail.com
- update to 4.1.1
- ElementPath supports text predicates for current node, like "[.='text']".
- ElementPath allows spaces in predicates.
- Custom Element classes and XPath functions can now be registered with
a decorator rather than explicit dict assignments.
- LP#1722776: Requesting non-Element objects like comments from
a document with PythonElementClassLookup could fail with a TypeError.
-------------------------------------------------------------------
Tue Oct 31 14:24:25 UTC 2017 - jmatejek@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-lxml
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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,26 +18,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lxml
Version: 4.0.0
Version: 4.1.1
Release: 0
Summary: Pythonic XML processing library
License: BSD-3-Clause and GPL-2.0+
License: BSD-3-Clause AND GPL-2.0+
Group: Development/Languages/Python
Url: https://lxml.de/
Source: https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz
Source1: http://lxml.de/lxmldoc-%{version}.pdf
BuildRequires: %{python_module Cython >= 0.22.1}
BuildRequires: %{python_module Cython >= 0.26.1}
BuildRequires: %{python_module cssselect >= 0.9.1}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools >= 18.0.1}
BuildRequires: fdupes
BuildRequires: libxml2-devel >= 2.7.0
BuildRequires: libxslt-devel >= 1.1.23
BuildRequires: python-rpm-macros
# Needed for test cases:
BuildRequires: %{python_module cssselect >= 0.9.1}
Requires: python-cssselect >= 0.9.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
@ -93,10 +90,10 @@ export CFLAGS="%{optflags}"
export LANG=en_US.UTF-8
export PYTHONUNBUFFERED=x
%if 0%{?have_python2}
make test
make %{?_smp_mflags} test
%endif
%if 0%{?have_python3}
make test3
make %{?_smp_mflags} test3
%endif
%install
@ -104,7 +101,6 @@ make test3
%fdupes %{buildroot}
%files %{python_files}
%defattr(-,root,root)
%doc CHANGES.txt CREDITS.txt LICENSES.txt README.rst
%{python_sitearch}/lxml/
%{python_sitearch}/lxml-%{version}-py%{python_version}.egg-info
@ -112,12 +108,10 @@ make test3
%exclude %{python_sitearch}/lxml/includes/*.h
%files %{python_files devel}
%defattr(-,root,root)
%{python_sitearch}/lxml/*.h
%{python_sitearch}/lxml/includes/*.h
%files %{python_files doc}
%defattr(-,root,root)
%doc doc/html lxmldoc-%{version}.pdf
%changelog