15
0
Files
python-elementpath/python-elementpath.spec
Daniel Garcia 4177c5ef9e - Update to 4.1.2:
* Add support for Python 3.12
  * Fix self shortcut operator (adding is_schema_node() to node classes)
- 4.1.1:
  * Simplify type annotations for XSD datatypes
  * Full test coverage of sequence type functions with bugfixes
- 4.1.0:
  * Refactor XPath function call (context=None only as keyword argument)
  * Add external function support (issue #60)
  * Some fixes to string representation and source property of tokens
  * Extend documentation and tests
  * Clean XSD datatypes hierarchy
- 4.0.1:
  * Fix packaging: include py.typed in package data
  * Revert to comparison between xs:QName instances and strings
  * Fix atomization with XSD typed data (list types have to be atomized)
- 4.0.0:
  * First XPath 3.1 implementation (without UCA collation support)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elementpath?expand=0&rev=30
2023-05-10 09:20:11 +00:00

67 lines
2.1 KiB
RPMSpec

#
# spec file for package python-elementpath
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%define skip_python36 1
%{?sle15_python_module_pythons}
Name: python-elementpath
Version: 4.1.2
Release: 0
Summary: XPath 1.0/20 parsers and selectors for ElementTree and lxml
License: MIT
URL: https://github.com/sissaschool/elementpath
Source: https://github.com/sissaschool/elementpath/archive/v%{version}.tar.gz
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xmlschema}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%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 <http://lxml.de>`_ library.
%prep
%setup -q -n elementpath-%{version}
# avoid cycle between us and xmlschema
rm tests/test_schema_proxy.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_compare_strings_function depends on LOCALE to produce proper results
# test_hashing is arch specific and overflows on 32bit platforms
%pytest -k 'not test_compare_strings_function and not test_hashing'
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/elementpath
%{python_sitelib}/elementpath-%{version}*-info
%changelog