15
0

- Remove BuildRequire xmlschema to avoid dependency cycle

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elementpath?expand=0&rev=31
This commit is contained in:
2023-05-12 05:57:12 +00:00
committed by Git OBS Bridge
parent 4177c5ef9e
commit 4a2513bb8a
2 changed files with 12 additions and 2 deletions

View File

@@ -29,7 +29,6 @@ Source: https://github.com/sissaschool/elementpath/archive/v%{version}.t
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xmlschema}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -54,8 +53,14 @@ rm tests/test_schema_proxy.py
%check
# test_compare_strings_function depends on LOCALE to produce proper results
donttest="test_compare_strings_function"
# test_hashing is arch specific and overflows on 32bit platforms
%pytest -k 'not test_compare_strings_function and not test_hashing'
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)"
%files %{python_files}
%doc CHANGELOG.rst README.rst