diff --git a/0001-Fixed-the-incorrect-format-of-the-project.license-fi.patch b/0001-Fixed-the-incorrect-format-of-the-project.license-fi.patch new file mode 100644 index 0000000000000000000000000000000000000000..5a0bd775cd43a9ffc1ff7239d785a0fd6bdc1f32 --- /dev/null +++ b/0001-Fixed-the-incorrect-format-of-the-project.license-fi.patch @@ -0,0 +1,27 @@ +From 8cbcc227441f3efe97dfc3f958c35dac10b0360f Mon Sep 17 00:00:00 2001 +From: lichenguang +Date: Thu, 16 Oct 2025 11:26:50 +0800 +Subject: [PATCH] Fixed the incorrect format of the project.license field in + the pyproject.toml file + +--- + pyproject.toml | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index b205a47..5f72103 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -7,8 +7,7 @@ name = "xmlschema" + version = "4.2.0" + description = "An XML Schema validator and decoder" + readme = "README.rst" +-license = "MIT" +-license-files = ["LICENSE"] ++license = { file = "LICENSE" } + requires-python = ">=3.9" + authors = [ + { name = "Davide Brunato", email = "brunato@sissa.it" }, +-- +2.48.1 + diff --git a/python-xmlschema.spec b/python-xmlschema.spec index ce57ebc9e24870911718ed1fed09aa508243fb55..b7f8ff0f4c59653026559d1fa760b28522644e9e 100644 --- a/python-xmlschema.spec +++ b/python-xmlschema.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-xmlschema -Version: 4.1.0 +Version: 4.2.0 Release: 1 Summary: An XML Schema validator and decoder License: MIT URL: https://github.com/sissaschool/xmlschema -Source0: https://files.pythonhosted.org/packages/dd/cb/dc0236ae209c924c1a7f4d3ae9d3371980beda85d1e0b5bd2d4f07372e48/xmlschema-4.1.0.tar.gz +Source0: https://files.pythonhosted.org/packages/84/f8/33b43a53503d0892e7555d16c593cf001d5aaa5b0ad7d53c68098235805b/xmlschema-4.2.0.tar.gz +Patch0: 0001-Fixed-the-incorrect-format-of-the-project.license-fi.patch BuildArch: noarch %description An XML Schema validator and decoder @@ -52,7 +53,7 @@ Provides: python3-xmlschema-doc An XML Schema validator and decoder %prep -%autosetup -n xmlschema-%{version} +%autosetup -p1 -n xmlschema-%{version} %build %pyproject_build @@ -87,6 +88,18 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Oct 16 2025 lichenguang - 4.2.0-1 +- Update to 4.2.0 + * Add arguments validation for schemas and validation methods (by validation contexts) + * Add SchemaSettings dataclass for storing read-only settings for schema instances + * and for managing package default settings + * Add block argument to XMLResource class (issue #464) + * Add MAX_SCHEMA_SOURCES package limit (1000, applied to XsdGlobals global maps instances) + * Add MAX_XML_ELEMENTS package limit (1,000,000, applied to non-lazy XMLResource instances) + * Reduce MAX_XML_DEPTH limit to 1000 and apply it to all XMLResource instances + * Fix for substitute match in case of unexpected child (issue #461) +- add patch to fix the incorrect format of the project.license field in the pyproject.toml file + * Tue Jul 22 2025 Dongxing Wang - 4.1.0-1 - Update package to version 4.1.0 diff --git a/xmlschema-4.1.0.tar.gz b/xmlschema-4.1.0.tar.gz deleted file mode 100644 index cc8889ad121c3338a787509397527838a3dd1702..0000000000000000000000000000000000000000 Binary files a/xmlschema-4.1.0.tar.gz and /dev/null differ diff --git a/xmlschema-4.2.0.tar.gz b/xmlschema-4.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..801f7ed91fcea9481d9412a3e3ebfd6b9b02fd97 Binary files /dev/null and b/xmlschema-4.2.0.tar.gz differ