forked from pool/python-xmlschema
Accepting request 1201708 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1201708 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xmlschema?expand=0&rev=27
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 18 05:56:39 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- 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 <steven.kowalik@suse.com>
|
Mon Aug 26 02:42:14 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -18,14 +18,12 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-xmlschema
|
Name: python-xmlschema
|
||||||
Version: 3.3.2
|
Version: 3.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An XML Schema validator and decoder
|
Summary: An XML Schema validator and decoder
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/sissaschool/xmlschema
|
URL: https://github.com/sissaschool/xmlschema
|
||||||
Source: https://files.pythonhosted.org/packages/source/x/xmlschema/xmlschema-%{version}.tar.gz
|
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 elementpath >= 3.0.0}
|
||||||
BuildRequires: %{python_module lxml}
|
BuildRequires: %{python_module lxml}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
@@ -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 <brunato@sissa.it>
|
|
||||||
#
|
|
||||||
+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))
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a2f021f21d0b5ab371e9bcb5a1d5c34b9ba2c74ad3e32854474c4159bf94e158
|
|
||||||
size 575004
|
|
BIN
xmlschema-3.4.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
xmlschema-3.4.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user