forked from pool/python-xmlschema
- Add the upstream etree_import_in_tests.patch to fix
gh#sissaschool/xmlschema#210. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=22
This commit is contained in:
@@ -25,15 +25,18 @@ Summary: An XML Schema validator and decoder
|
||||
License: MIT
|
||||
URL: https://github.com/sissaschool/xmlschema
|
||||
Source: https://files.pythonhosted.org/packages/source/x/xmlschema/xmlschema-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM etree_import_in_tests.patch gh#sissaschool/xmlschema#210 mcepl@suse.com
|
||||
# use the same etree all the time
|
||||
Patch0: etree_import_in_tests.patch
|
||||
# PATCH-FIX-UPSTREAM factory_tests.patch gh#sissaschool/xmlschema#210 mcepl@suse.com
|
||||
# rename tests_factory to factory_tests so it is not discovered by pytest.
|
||||
Patch0: factory_tests.patch
|
||||
Patch1: factory_tests.patch
|
||||
# PATCH-FIX-UPSTREAM remove_shebang.patch gh#sissaschool/xmlschema#210 mcepl@suse.com
|
||||
# Remove superfluous shebang
|
||||
Patch1: remove_shebang.patch
|
||||
Patch2: remove_shebang.patch
|
||||
# PATCH-FIX-UPSTREAM location_testing_script.patch gh#sissaschool/xmlschema#210 mcepl@suse.com
|
||||
# this patch makes things totally awesome
|
||||
Patch2: location_testing_script.patch
|
||||
Patch3: location_testing_script.patch
|
||||
BuildRequires: %{python_module elementpath >= 1.4.0}
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module pip}
|
||||
@@ -76,13 +79,7 @@ done
|
||||
|
||||
%check
|
||||
export LANG="en_US.UTF8"
|
||||
# test_element_tree_import_script is (easily workaroundable) gh#sissaschool/xmlschema#167
|
||||
# tests_factory setup is broken
|
||||
# SKIP_TESTS="test_element_tree_import_script"
|
||||
# gh#sissaschool/xmlschema#210
|
||||
SKIP_TESTS="test_imported_element_tree or test_xml_resource_defuse"
|
||||
SKIP_TESTS="$SKIP_TESTS or test_xml_resource_from_string"
|
||||
%pytest -s -k "not ($SKIP_TESTS)" tests
|
||||
%pytest tests/
|
||||
|
||||
%post
|
||||
%python_install_alternative xmlschema-json2xml
|
||||
|
Reference in New Issue
Block a user