From b2a8a9c7fd5728d377ec371f299a3e17db74a7ea342190dd2a8825f1723837fb Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 24 Apr 2025 02:40:16 +0000 Subject: [PATCH 1/2] Accepting request 1271998 from home:rrahl0 needs pytest-run-parallel OBS-URL: https://build.opensuse.org/request/show/1271998 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic-core?expand=0&rev=16 --- _service | 2 +- pydantic_core-2.27.2.tar.gz | 3 --- pydantic_core-2.33.1.tar.gz | 3 +++ python-pydantic-core.spec | 5 +++-- vendor.tar.xz | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 pydantic_core-2.27.2.tar.gz create mode 100644 pydantic_core-2.33.1.tar.gz diff --git a/_service b/_service index f6f6797..36b7981 100644 --- a/_service +++ b/_service @@ -1,7 +1,7 @@ - pydantic_core-2.27.2.tar.gz + pydantic_core-2.33.1.tar.gz xz false diff --git a/pydantic_core-2.27.2.tar.gz b/pydantic_core-2.27.2.tar.gz deleted file mode 100644 index 6c8365e..0000000 --- a/pydantic_core-2.27.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb026e5a4c1fee05726072337ff51d1efb6f59090b7da90d30ea58625b1ffb39 -size 413443 diff --git a/pydantic_core-2.33.1.tar.gz b/pydantic_core-2.33.1.tar.gz new file mode 100644 index 0000000..b92ec07 --- /dev/null +++ b/pydantic_core-2.33.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcc9c6fdb0ced789245b02b7d6603e17d1563064ddcfc36f046b61c0c05dd9df +size 434395 diff --git a/python-pydantic-core.spec b/python-pydantic-core.spec index 8b06472..67d2202 100644 --- a/python-pydantic-core.spec +++ b/python-pydantic-core.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-pydantic-core # # Copyright (c) 2025 SUSE LLC # @@ -26,7 +26,7 @@ %endif %{?sle15_python_module_pythons} Name: python-pydantic-core%{psuffix} -Version: 2.27.2 +Version: 2.33.1 Release: 0 Summary: Core functionality for pydantic validation and serialization License: MIT @@ -46,6 +46,7 @@ BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module pydantic-core == %{version}} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-run-parallel} BuildRequires: %{python_module pytest-timeout} BuildRequires: %{python_module pytest} %endif diff --git a/vendor.tar.xz b/vendor.tar.xz index 1b9b176..c07303f 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8c06b485519daa4d8948594c6086a451d63e2b1403cb8b94a8516c2e1eb8ed8c -size 4851772 +oid sha256:e18b8977ef58ca69cfbecd7528fc1bebd4ff50448b303f822685e796103f6000 +size 5119152 From 492e71423a36c4779d579c54356e294c67ab5001c1606a8d29cd21857a642f61 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 24 Apr 2025 04:06:56 +0000 Subject: [PATCH 2/2] - Update to 2.34.1: * Fixes + fix clippy lints for Rust 1.86 + Allow JSON BigInt to validate against float schema + Ensure ValidationInfo.field_name is correct on validator reuse + Coerce 'timedelta' schema constraints + Add support for extra keys validation for model fields + Revert by_alias default value change for to_json() and to_jsonable_python() + Skip reusing after validators in prebuilt schemas + Skip reusing wrap validators / serializers for prebuilt variants + Add cls_name to typed-dict schema + Coerce validator constraints to their valid type + Use core schema fns to initalize SchemaValidators in the test suite + Fix enum strict JSON validation when validators are present + Add support for validating v7 UUIDs + Refactor LookupKey logic to reduce redundancy + Add support for UUIDv6 and UUIDv8 validation + Remove unneeded Option map in PyMultiHostUrl.build + bump to PyO3 0.23.5, support PyPy 3.11 + Fix strict behavior for unions + Improving the alias configuration API for validation and serialization + Fix float multiple_of validation for negative numbers + Fix wasm preview + Raise validation error when unhashable items added to a set + Fix condition before using prebuilt validator/serializer + minimal upgrade to PyO3 0.23 (ignoring deprecations) + Use UserWarning from pyo3 + Forward default_value calls to the underlying schema for DefinitionRefValidator OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic-core?expand=0&rev=17 --- _service | 4 +-- pydantic_core-2.33.1.tar.gz | 3 --- pydantic_core-2.34.1.tar.gz | 3 +++ python-pydantic-core.changes | 49 ++++++++++++++++++++++++++++++++++++ python-pydantic-core.spec | 3 ++- vendor.tar.xz | 4 +-- 6 files changed, 58 insertions(+), 8 deletions(-) delete mode 100644 pydantic_core-2.33.1.tar.gz create mode 100644 pydantic_core-2.34.1.tar.gz diff --git a/_service b/_service index 36b7981..c07982c 100644 --- a/_service +++ b/_service @@ -1,9 +1,9 @@ - pydantic_core-2.33.1.tar.gz + pydantic_core-2.34.1.tar.gz xz - false + true diff --git a/pydantic_core-2.33.1.tar.gz b/pydantic_core-2.33.1.tar.gz deleted file mode 100644 index b92ec07..0000000 --- a/pydantic_core-2.33.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bcc9c6fdb0ced789245b02b7d6603e17d1563064ddcfc36f046b61c0c05dd9df -size 434395 diff --git a/pydantic_core-2.34.1.tar.gz b/pydantic_core-2.34.1.tar.gz new file mode 100644 index 0000000..3775f04 --- /dev/null +++ b/pydantic_core-2.34.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bf31628ab6d0e7c7c0372419898c52ef0a447b33ab47c7f62053bd013cc5b09 +size 435281 diff --git a/python-pydantic-core.changes b/python-pydantic-core.changes index 9e1363c..5a32512 100644 --- a/python-pydantic-core.changes +++ b/python-pydantic-core.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Thu Apr 24 04:03:49 UTC 2025 - Steve Kowalik + +- Update to 2.34.1: + * Fixes + + fix clippy lints for Rust 1.86 + + Allow JSON BigInt to validate against float schema + + Ensure ValidationInfo.field_name is correct on validator reuse + + Coerce 'timedelta' schema constraints + + Add support for extra keys validation for model fields + + Revert by_alias default value change for to_json() and + to_jsonable_python() + + Skip reusing after validators in prebuilt schemas + + Skip reusing wrap validators / serializers for prebuilt variants + + Add cls_name to typed-dict schema + + Coerce validator constraints to their valid type + + Use core schema fns to initalize SchemaValidators in the test suite + + Fix enum strict JSON validation when validators are present + + Add support for validating v7 UUIDs + + Refactor LookupKey logic to reduce redundancy + + Add support for UUIDv6 and UUIDv8 validation + + Remove unneeded Option map in PyMultiHostUrl.build + + bump to PyO3 0.23.5, support PyPy 3.11 + + Fix strict behavior for unions + + Improving the alias configuration API for validation and serialization + + Fix float multiple_of validation for negative numbers + + Fix wasm preview + + Raise validation error when unhashable items added to a set + + Fix condition before using prebuilt validator/serializer + + minimal upgrade to PyO3 0.23 (ignoring deprecations) + + Use UserWarning from pyo3 + + Forward default_value calls to the underlying schema for + DefinitionRefValidator + + fix type hint for SerializationInfo.round_trip + + Include JSON Schema input core schema in function schemas + + fix wasteful to_python() calls checking for undefined + + Fix ValueError on year zero + + optimize refcounting op in datetime creation + + Drop 3.8 support + + Fix: dataclass InitVars shouldn't be required on serialization + * Performance + + Clean up PydanticUnexpectedValueError + + Memory usage optimization via reuse of SchemaValidator and + SchemaSerializer + * New Features + + Add new arguments-v3 schema + + Add TzInfo.__new__ stub method + + Support free-threaded Python 3.13t + ------------------------------------------------------------------- Sat Jan 25 10:32:49 UTC 2025 - ecsos diff --git a/python-pydantic-core.spec b/python-pydantic-core.spec index 67d2202..7400a9b 100644 --- a/python-pydantic-core.spec +++ b/python-pydantic-core.spec @@ -26,13 +26,14 @@ %endif %{?sle15_python_module_pythons} Name: python-pydantic-core%{psuffix} -Version: 2.33.1 +Version: 2.34.1 Release: 0 Summary: Core functionality for pydantic validation and serialization License: MIT URL: https://github.com/pydantic/pydantic-core Source0: https://files.pythonhosted.org/packages/source/p/pydantic-core/pydantic_core-%{version}.tar.gz Source1: vendor.tar.xz +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module inline-snapshot} BuildRequires: %{python_module maturin >= 1} BuildRequires: %{python_module pip} diff --git a/vendor.tar.xz b/vendor.tar.xz index c07303f..7c77402 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e18b8977ef58ca69cfbecd7528fc1bebd4ff50448b303f822685e796103f6000 -size 5119152 +oid sha256:10e4ec19e428583087c8ab7dab14e331c99b117a8139e36f12d1a94075855865 +size 5242796