From 2f1d02ba8f2be76da753af22358154ee7ca8da35dead434735d8f01df9b62d90 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 10 Oct 2020 11:26:00 +0000 Subject: [PATCH 1/2] - Update to 1.2.5: - All W3C tests now run successful. Only W3C tests for unavailable features (XML 1.1) or unimplemented features (dynamic schema load) are still failing. This release requires elementpath v2.0.x. - The internal XML regular expressions parser has been moved to XPath package elementpath (v2.0.2+). From this release the regex patterns are parsed through elementpath's API translate_pattern().' OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=17 --- python-xmlschema.changes | 13 +++++++++++++ python-xmlschema.spec | 5 +++-- xmlschema-1.2.2.tar.gz | 3 --- xmlschema-1.2.5.tar.gz | 3 +++ 4 files changed, 19 insertions(+), 5 deletions(-) delete mode 100644 xmlschema-1.2.2.tar.gz create mode 100644 xmlschema-1.2.5.tar.gz diff --git a/python-xmlschema.changes b/python-xmlschema.changes index 036ef19..8be5696 100644 --- a/python-xmlschema.changes +++ b/python-xmlschema.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Oct 10 10:28:03 UTC 2020 - Matej Cepl + +- Update to 1.2.5: + - All W3C tests now run successful. Only W3C tests for + unavailable features (XML 1.1) or unimplemented features + (dynamic schema load) are still failing. This release requires + elementpath v2.0.x. + - The internal XML regular expressions parser has been moved to + XPath package elementpath (v2.0.2+). From this release + the regex patterns are parsed through elementpath's API + translate_pattern().' + ------------------------------------------------------------------- Tue Jul 21 11:50:05 UTC 2020 - Marketa Calabkova diff --git a/python-xmlschema.spec b/python-xmlschema.spec index d84c35d..02de126 100644 --- a/python-xmlschema.spec +++ b/python-xmlschema.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-xmlschema -Version: 1.2.2 +Version: 1.2.5 Release: 0 Summary: An XML Schema validator and decoder License: MIT @@ -66,8 +66,9 @@ done %check # test_element_tree_import_script is (easily workaroundable) https://github.com/sissaschool/xmlschema/issues/167 # tests_factory setup is broken +# test_export_remote__issue_187 is gh#sissaschool/xmlschema#206 export LANG="en_US.UTF8" -%pytest -k "not (test_element_tree_import_script or tests_factory)" tests +%pytest -k "not (test_element_tree_import_script or tests_factory or test_export_remote__issue_187)" tests %post %python_install_alternative xmlschema-json2xml diff --git a/xmlschema-1.2.2.tar.gz b/xmlschema-1.2.2.tar.gz deleted file mode 100644 index 5830480..0000000 --- a/xmlschema-1.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d194332cc6d4b56e59d510ece63a5aa78b58e6e332765d46ce5746cb2c3ef20 -size 318829 diff --git a/xmlschema-1.2.5.tar.gz b/xmlschema-1.2.5.tar.gz new file mode 100644 index 0000000..8e461b0 --- /dev/null +++ b/xmlschema-1.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c4515dd16b5b556dac27cae70bdb3c863e1448e9d58896326ff468ff55e4246 +size 290750 From dfae7bfecf164cb4c5e74b57fc602f5919405915fc03f15e1814281f01092f90 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 11 Oct 2020 16:19:54 +0000 Subject: [PATCH 2/2] - Add skip_network_tests.patch to skip test test_export_remote__issue_187 which fails without the network connection (gh#sissaschool/xmlschema#206). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=18 --- python-xmlschema.changes | 7 +++++++ python-xmlschema.spec | 9 ++++++--- skip_network_tests.patch | 10 ++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 skip_network_tests.patch diff --git a/python-xmlschema.changes b/python-xmlschema.changes index 8be5696..0c10653 100644 --- a/python-xmlschema.changes +++ b/python-xmlschema.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Oct 11 16:18:52 UTC 2020 - Matej Cepl + +- Add skip_network_tests.patch to skip test + test_export_remote__issue_187 which fails without the network + connection (gh#sissaschool/xmlschema#206). + ------------------------------------------------------------------- Sat Oct 10 10:28:03 UTC 2020 - Matej Cepl diff --git a/python-xmlschema.spec b/python-xmlschema.spec index 02de126..80047a1 100644 --- a/python-xmlschema.spec +++ b/python-xmlschema.spec @@ -25,6 +25,9 @@ Summary: An XML Schema validator and decoder License: MIT URL: https://github.com/brunato/xmlschema Source: https://files.pythonhosted.org/packages/source/x/xmlschema/xmlschema-%{version}.tar.gz +# PATCH-FIX-UPSTREAM skip_network_tests.patch gh#sissaschool/xmlschema#206 mcepl@suse.com +# Just skip test_export_remote__issue_187 test when not connected to the network. +Patch0: skip_network_tests.patch BuildRequires: %{python_module elementpath >= 1.4.0} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest} @@ -43,7 +46,8 @@ The *xmlschema* library is an implementation of `XML Schema =:' setup.py # do not bother with memory validation @@ -66,9 +70,8 @@ done %check # test_element_tree_import_script is (easily workaroundable) https://github.com/sissaschool/xmlschema/issues/167 # tests_factory setup is broken -# test_export_remote__issue_187 is gh#sissaschool/xmlschema#206 export LANG="en_US.UTF8" -%pytest -k "not (test_element_tree_import_script or tests_factory or test_export_remote__issue_187)" tests +%pytest -k "not (test_element_tree_import_script or tests_factory)" tests %post %python_install_alternative xmlschema-json2xml diff --git a/skip_network_tests.patch b/skip_network_tests.patch new file mode 100644 index 0000000..66fc5e0 --- /dev/null +++ b/skip_network_tests.patch @@ -0,0 +1,10 @@ +--- a/tests/validators/test_schema_class.py ++++ b/tests/validators/test_schema_class.py +@@ -261,6 +261,7 @@ class TestXMLSchema10(XsdValidatorTestCa + + self.assertFalse(os.path.isdir(dirname)) + ++ @unittest.skipIf(SKIP_REMOTE_TESTS, "Remote networks are not accessible.") + def test_export_remote__issue_187(self): + vh_schema_file = self.casepath('issues/issue_187/issue_187_2.xsd') + vh_schema = self.schema_class(vh_schema_file)