[packages/python3-elementpath] - updated to 3.0.2 (for xmlschema 2.x)
qboosh
qboosh at pld-linux.org
Sat Jan 14 21:34:20 CET 2023
commit f5cc9ae23e23913356e743ed26ed8b2c27aa09d7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 14 21:35:27 2023 +0100
- updated to 3.0.2 (for xmlschema 2.x)
python3-elementpath.spec | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
---
diff --git a/python3-elementpath.spec b/python3-elementpath.spec
index 0ef1718..1de7a85 100644
--- a/python3-elementpath.spec
+++ b/python3-elementpath.spec
@@ -3,21 +3,26 @@
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-Summary: XPath 1.0/2.0 parsers and selectors for ElementTree and lxml
-Summary(pl.UTF-8): Parsery i selektory XPath 1.0/2.0 dla ElementTree oraz lxml
+Summary: XPath 1.0/2.0/3.0 parsers and selectors for ElementTree and lxml
+Summary(pl.UTF-8): Parsery i selektory XPath 1.0/2.0/3.0 dla ElementTree oraz lxml
+# beware of python3-xmlschema compatibility (xmlschema 2.1.x requires elementpath 3.x)
Name: python3-elementpath
-Version: 2.5.0
-Release: 3
+Version: 3.0.2
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/elementpath/
Source0: https://files.pythonhosted.org/packages/source/e/elementpath/elementpath-%{version}.tar.gz
-# Source0-md5: 352e7980c3be9716a355f7588bd151c2
+# Source0-md5: c4b193e1eb5148bdb493944036fdff20
URL: https://pypi.org/project/elementpath/
+%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-lxml
+#BuildRequires: python3-xmlschema >= 2.0.0
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -29,14 +34,14 @@ BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The proposal of this package is to provide XPath 1.0 and 2.0 selectors
-for Python's ElementTree XML data structures, both for the standard
-ElementTree library and for the lxml.etree library.
+The proposal of this package is to provide XPath 1.0, 2.0 and 3.0
+selectors for Python's ElementTree XML data structures, both for the
+standard ElementTree library and for the lxml.etree library.
%description -l pl.UTF-8
-Celem tego pakietu jest udostępnienie selektorów XPath 1.0 i 2.0 do
-pythonowych struktur danych XML ElementTree, zarówno dla ElementTree z
-biblioteki strandardowej, jak i lxml.etree.
+Celem tego pakietu jest udostępnienie selektorów XPath 1.0, 2.0 i 3.0
+do pythonowych struktur danych XML ElementTree, zarówno dla
+ElementTree z biblioteki strandardowej, jak i lxml.etree.
%package apidocs
Summary: API documentation for Python elementpath module
@@ -56,6 +61,7 @@ Dokumentacja API modułu Pythona elementpath.
%py3_build
%if %{with tests}
+LC_ALL=C.UTF-8 \
%{__python3} -m unittest
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-elementpath.git/commitdiff/f5cc9ae23e23913356e743ed26ed8b2c27aa09d7
More information about the pld-cvs-commit
mailing list