diff --git a/python-xmlschema.changes b/python-xmlschema.changes index 8929033..ca8e9c7 100644 --- a/python-xmlschema.changes +++ b/python-xmlschema.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Wed Sep 18 05:56:39 UTC 2024 - Markéta Machová + +- Update to 3.4.2 + * Extended ModelVisitor to make it usable as an helper class for + generating content + * Fix failing URL normalization tests + * Disable protocols checking with elementpath v4.5.0 + * Avoid the use of sys.version_info for checking results, better + to extend the check to more values. +- Drop support-new-python-3.12.patch, fixed upstream + ------------------------------------------------------------------- Mon Aug 26 02:42:14 UTC 2024 - Steve Kowalik diff --git a/python-xmlschema.spec b/python-xmlschema.spec index b8e1d49..9a00b27 100644 --- a/python-xmlschema.spec +++ b/python-xmlschema.spec @@ -18,14 +18,12 @@ %{?sle15_python_module_pythons} Name: python-xmlschema -Version: 3.3.2 +Version: 3.4.2 Release: 0 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-OPENSUSE Based on https://github.com/sissaschool/xmlschema/issues/412 -Patch0: support-new-python-3.12.patch BuildRequires: %{python_module elementpath >= 3.0.0} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pip} diff --git a/support-new-python-3.12.patch b/support-new-python-3.12.patch deleted file mode 100644 index 39aa3f6..0000000 --- a/support-new-python-3.12.patch +++ /dev/null @@ -1,24 +0,0 @@ -Index: xmlschema-3.3.2/tests/validators/test_schemas.py -=================================================================== ---- xmlschema-3.3.2.orig/tests/validators/test_schemas.py -+++ xmlschema-3.3.2/tests/validators/test_schemas.py -@@ -8,6 +8,7 @@ - # - # @author Davide Brunato - # -+import sys - import unittest - import logging - import warnings -@@ -702,7 +703,10 @@ class TestXMLSchema10(XsdValidatorTestCa - - with self.assertRaises((pickle.PicklingError, AttributeError)) as ec: - pickle.dumps(schema) -- self.assertIn("Can't pickle", str(ec.exception)) -+ message = "Can't pickle" -+ if sys.version_info >= (3, 12, 5): -+ message = "Can't get local object" -+ self.assertIn(message, str(ec.exception)) - - def test_meta_schema_validation(self): - self.assertTrue(self.schema_class.meta_schema.is_valid(self.vh_xsd_file)) diff --git a/xmlschema-3.3.2.tar.gz b/xmlschema-3.3.2.tar.gz deleted file mode 100644 index 424f80e..0000000 --- a/xmlschema-3.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2f021f21d0b5ab371e9bcb5a1d5c34b9ba2c74ad3e32854474c4159bf94e158 -size 575004 diff --git a/xmlschema-3.4.2.tar.gz b/xmlschema-3.4.2.tar.gz new file mode 100644 index 0000000..18eb339 --- /dev/null +++ b/xmlschema-3.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d35023ea504ea46127302d1297b046d023b96fec5fe4b4b690534ea85b5e9bf8 +size 584249