forked from pool/python-elementpath
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user