From d1a18acd91b26cb02eda4f579620822baf3a84d7 Mon Sep 17 00:00:00 2001 From: StevenK <> Date: Apr 25 2025 20:59:21 +0000 Subject: Update python-pydantic-core to version 2.34.1 / rev 8 via SR 1272286 https://build.opensuse.org/request/show/1272286 by user StevenK + anag_factory - 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 + Refac --- diff --git a/.files b/.files index 996c9bb..abd6919 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index cefc0e5..a198248 100644 --- a/.rev +++ b/.rev @@ -107,4 +107,41 @@ <comment></comment> <requestid>1240303</requestid> </revision> + <revision rev="8" vrev="1"> + <srcmd5>00258ea2b68b5d9fc07c3002f1b0c2f0</srcmd5> + <version>2.34.1</version> + <time>1745612274</time> + <user>anag_factory</user> + <comment>- 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</comment> + <requestid>1272286</requestid> + </revision> </revisionlist> diff --git a/_service b/_service index ecc766c..239cf27 100644 --- a/_service +++ b/_service @@ -1,9 +1,9 @@ <services> <service name="download_files" mode="manual"/> <service name="cargo_vendor" mode="manual"> - <param name="srctar">pydantic_core-2.27.2.tar.gz</param> + <param name="srctar">pydantic_core-2.34.1.tar.gz</param> <param name="compression">xz</param> - <param name="update">false</param> + <param name="update">true</param> </service> <service name="cargo_audit" mode="manual"></service> </services> diff --git a/pydantic_core-2.27.2.tar.gz b/pydantic_core-2.27.2.tar.gz deleted file mode 120000 index 9b228c7..0000000 --- a/pydantic_core-2.27.2.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeidjxmsvmcfem2zd5gqypnqk74yxtrefskifnomdgeifiuqvr66d6i \ No newline at end of file diff --git a/pydantic_core-2.34.1.tar.gz b/pydantic_core-2.34.1.tar.gz new file mode 120000 index 0000000..107d9ac --- /dev/null +++ b/pydantic_core-2.34.1.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeifnx5duudc5f2vwet6gflibim7x2o3dhvb6qxch6ucnedet4xj4lu \ No newline at end of file diff --git a/python-pydantic-core.changes b/python-pydantic-core.changes index 57ba8ec..de6c1e3 100644 --- a/python-pydantic-core.changes +++ b/python-pydantic-core.changes @@ -1,4 +1,53 @@ ------------------------------------------------------------------- +Thu Apr 24 04:03:49 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> + +- 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 <ecsos@opensuse.org> - Update ot 2.27.2 diff --git a/python-pydantic-core.spec b/python-pydantic-core.spec index 0ceb9ac..be8b711 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,13 +26,14 @@ %endif %{?sle15_python_module_pythons} Name: python-pydantic-core%{psuffix} -Version: 2.27.2 +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} @@ -46,6 +47,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 a02cc46..4b7ffc0 120000 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1 +1 @@ -/ipfs/bafybeidehwsgizx5eutvgjnp3cdbnlrunzqfj7xjgqi5anfey2efuzfjha \ No newline at end of file +/ipfs/bafybeihbmvrag6skjcarhyllzfy5souzjrjx6c2yodekczj7ixgcbmqxay \ No newline at end of file