forked from pool/python-xmlschema
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 828d86427a | |||
| d40fd6f033 | |||
| dd44b3329a | |||
| 544135473b | |||
| dda0598a9c | |||
| a65e967820 |
@@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 26 09:44:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 15 08:28:45 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.4.3
|
||||||
|
* Fix incorrect validation error for substitution group with
|
||||||
|
abstract head (issue #417)
|
||||||
|
* Refactor XSD identities processing using also typed XPath
|
||||||
|
2.0+ for getting values (issue #418)
|
||||||
|
* Clean tag retrieval during encode for some converter types
|
||||||
|
(Abdera, BadgerFish and GData)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-xmlschema
|
# spec file for package python-xmlschema
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,16 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-xmlschema
|
Name: python-xmlschema
|
||||||
Version: 3.3.2
|
Version: 3.4.3
|
||||||
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}
|
||||||
@@ -36,9 +39,14 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-elementpath >= 3.0.0
|
Requires: python-elementpath >= 3.0.0
|
||||||
Requires: python-lxml
|
Requires: python-lxml
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -71,6 +79,11 @@ done
|
|||||||
export LANG="en_US.UTF8"
|
export LANG="en_US.UTF8"
|
||||||
%pytest tests/
|
%pytest tests/
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative xmlschema-json2xml
|
||||||
|
%python_libalternatives_reset_alternative xmlschema-validate
|
||||||
|
%python_libalternatives_reset_alternative xmlschema-xml2json
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative xmlschema-json2xml
|
%python_install_alternative xmlschema-json2xml
|
||||||
%python_install_alternative xmlschema-validate
|
%python_install_alternative xmlschema-validate
|
||||||
|
|||||||
@@ -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.3.tar.gz
LFS
Normal file
BIN
xmlschema-3.4.3.tar.gz
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user