From 4a2513bb8a22242dc06a05876089a17eb2e7d13da012d66116b4d1d7bfd4921e Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 12 May 2023 05:57:12 +0000 Subject: [PATCH] - Remove BuildRequire xmlschema to avoid dependency cycle OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elementpath?expand=0&rev=31 --- python-elementpath.changes | 5 +++++ python-elementpath.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-elementpath.changes b/python-elementpath.changes index d673cbb..022e0f9 100644 --- a/python-elementpath.changes +++ b/python-elementpath.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 12 05:56:30 UTC 2023 - Daniel Garcia + +- Remove BuildRequire xmlschema to avoid dependency cycle + ------------------------------------------------------------------- Wed May 10 09:18:23 UTC 2023 - Daniel Garcia diff --git a/python-elementpath.spec b/python-elementpath.spec index b371ef3..855095e 100644 --- a/python-elementpath.spec +++ b/python-elementpath.spec @@ -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