14
0

Accepting request 1272286 from devel:languages:python

- 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/request/show/1272286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydantic-core?expand=0&rev=8
This commit is contained in:
2025-04-25 20:17:54 +00:00
committed by Git OBS Bridge
6 changed files with 60 additions and 9 deletions

View File

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

BIN
pydantic_core-2.27.2.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bf31628ab6d0e7c7c0372419898c52ef0a447b33ab47c7f62053bd013cc5b09
size 435281

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
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>

View File

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

BIN
vendor.tar.xz (Stored with Git LFS)

Binary file not shown.