2019-09-09 14:35:29 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-elementpath
|
|
|
|
|
#
|
2025-01-23 13:02:18 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-09-09 14:35:29 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-04-21 14:41:41 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-09-09 14:35:29 +00:00
|
|
|
Name: python-elementpath
|
2025-03-19 08:58:04 +00:00
|
|
|
Version: 4.8.0
|
2019-09-09 14:35:29 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: XPath 1.0/20 parsers and selectors for ElementTree and lxml
|
|
|
|
|
License: MIT
|
2019-09-09 18:34:11 +00:00
|
|
|
URL: https://github.com/sissaschool/elementpath
|
2019-09-09 14:35:29 +00:00
|
|
|
Source: https://github.com/sissaschool/elementpath/archive/v%{version}.tar.gz
|
2024-04-02 09:47:42 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2019-10-30 12:36:04 +00:00
|
|
|
BuildRequires: %{python_module lxml}
|
2025-06-23 01:33:02 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-09-09 14:35:29 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-23 01:33:02 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-09-09 14:35:29 +00:00
|
|
|
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
|
2025-06-23 01:33:02 +00:00
|
|
|
%pyproject_wheel
|
2019-09-09 14:35:29 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-06-23 01:33:02 +00:00
|
|
|
%pyproject_install
|
2019-09-09 14:35:29 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# test_compare_strings_function depends on LOCALE to produce proper results
|
2023-05-12 05:57:12 +00:00
|
|
|
donttest="test_compare_strings_function"
|
2019-09-09 18:34:11 +00:00
|
|
|
# test_hashing is arch specific and overflows on 32bit platforms
|
2023-05-12 05:57:12 +00:00
|
|
|
donttest+=" or test_hashing"
|
|
|
|
|
# tests that depends on xmlschema so ignore it to
|
|
|
|
|
# avoid dependency cycle
|
|
|
|
|
donttest+=" or test_validate_analyzed_string"
|
|
|
|
|
donttest+=" or test_validate_json_to_xml"
|
|
|
|
|
%pytest -k "not ($donttest)"
|
2019-09-09 14:35:29 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc CHANGELOG.rst README.rst
|
|
|
|
|
%license LICENSE
|
2023-05-10 09:20:11 +00:00
|
|
|
%{python_sitelib}/elementpath
|
2025-06-23 01:33:02 +00:00
|
|
|
%{python_sitelib}/elementpath-%{version}.dist-info
|
2019-09-09 14:35:29 +00:00
|
|
|
|
|
|
|
|
%changelog
|