1
0

5 Commits

Author SHA256 Message Date
d4b646a47b Convert to libalternatives, bsc#1245883 2025-11-03 15:13:00 +01:00
dd44b3329a Accepting request 1224433 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1224433
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xmlschema?expand=0&rev=28
2024-11-17 15:39:38 +00:00
544135473b - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=58
2024-11-15 11:55:48 +00:00
dda0598a9c 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
2024-09-18 13:26:13 +00:00
a65e967820 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlschema?expand=0&rev=56
2024-09-18 06:12:55 +00:00
5 changed files with 49 additions and 32 deletions

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
#
# 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
# 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}
Name: python-xmlschema
Version: 3.3.2
Version: 3.4.3
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}
@@ -36,9 +39,14 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-elementpath >= 3.0.0
Requires: python-lxml
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%python_subpackages
%description
@@ -71,6 +79,11 @@ done
export LANG="en_US.UTF8"
%pytest tests/
%pre
%python_libalternatives_reset_alternative xmlschema-json2xml
%python_libalternatives_reset_alternative xmlschema-validate
%python_libalternatives_reset_alternative xmlschema-xml2json
%post
%python_install_alternative xmlschema-json2xml
%python_install_alternative xmlschema-validate

View File

@@ -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))

View 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

Binary file not shown.