diff --git a/pydantic-2.10.6.tar.gz b/pydantic-2.10.6.tar.gz deleted file mode 100644 index 39737cd..0000000 --- a/pydantic-2.10.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28ffd94bb9894daddef6cfcb167c78aa7bfb0bd39b22bc3f6db37950273923bf -size 3009610 diff --git a/pydantic-2.11.3.tar.gz b/pydantic-2.11.3.tar.gz new file mode 100644 index 0000000..973d9ab --- /dev/null +++ b/pydantic-2.11.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48e0179c1190060394e0a30529438eff17413e478b9c6229ad5d94c9a8956609 +size 3074163 diff --git a/python-pydantic.changes b/python-pydantic.changes index 8d17fca..85d32ab 100644 --- a/python-pydantic.changes +++ b/python-pydantic.changes @@ -1,3 +1,92 @@ +------------------------------------------------------------------- +Sun Apr 20 10:54:45 UTC 2025 - Richard Rahl + +- update to 2.11.3: + * Preserve field description when rebuilding model fields +- update to 2.11.2: + * Make sure __pydantic_private__ exists before setting private attributes + * Do not override FieldInfo._complete when using field from parent class + * Provide the available definitions when applying discriminated unions + * Do not expand root type in the mypy plugin for variables + * Mention the attribute name in model fields deprecation message + * Properly validate parameterized mappings +- update to 2.11.1: + * Do not override 'definitions-ref' schemas containing serialization schemas or metadata +- update to 2.11.0: + * Re-enable memray related tests on Python 3.12+ + * Add a check_pydantic_core_version() function + * Remove greenlet development dependency + * Support unsubstituted type variables with both a default and a bound or constraints + * Add a default_factory_takes_validated_data property to FieldInfo + * Raise a better error when a generic alias is used inside type[] + * Properly support PEP 695 generics syntax + * Properly support type variable defaults + * Add support for validating v6, v7, v8 UUIDs + * Improve alias configuration APIs + * Add experimental support for free threading + * Add encoded_string() method to the URL types + * Add support for defer_build with @validate_call decorator + * Allow @with_config decorator to be used with keyword arguments + * Simplify customization of default value inclusion in JSON Schema generation + * Add generate_arguments_schema() function + * Rework create_model field definitions format + * Raise a deprecation warning when a field is annotated as final with a default value + * Deprecate accessing model_fields and model_computed_fields on instances + * Move core schema generation logic for path types inside the GenerateSchema class + * Move Mapping schema gen to GenerateSchema to complete removal of prepare_annotations_for_known_type workaround + * Remove Python 3.8 Support + * Optimize calls to get_type_ref + * Disable pydantic-core core schema validation + * Only evaluate FieldInfo annotations if required during schema building + * Improve __setattr__ performance of Pydantic models by caching setter functions + * Improve annotation application performance + * Improve performance of _typing_extra module + * Refactor and optimize schema cleaning logic + * Create a single dictionary when creating a CoreConfig instance + * Reuse cached core schemas for parametrized generic Pydantic models + * Add validation tests for _internal/_validators.py + * Subclass all single host url classes from AnyUrl to preserve behavior from v2.9 + * Improve TypeAdapter instance repr + * Use the correct frame when instantiating a parametrized TypeAdapter + * Relax check for validated data in default factory utils + * Fix type checking issue with model_fields and model_computed_fields + * Use the parent configuration during schema generation for stdlib dataclasses + * Use the globals of the function when evaluating the return type of serializers and computed_fields + * Fix url constraint application + * Fix URL equality with different validation methods + * Fix JSON schema title when specified as '' + * Do not evaluate annotations for private fields + * Support serialization as any for Secret types and Url types + * Fix type hint of Field.default to be compatible with Python 3.8 and 3.9 + * hashing support for urls + * Hide BaseModel.__replace__ definition from type checkers + * Set fields when defer_build is set on Pydantic dataclasses + * Do not resolve the JSON Schema reference for dict core schema keys + * Use the globals of the function when evaluating the return type for PlainSerializer and WrapSerializer functions + * Fix host required enforcement for urls to be compatible with v2.9 behavior + * Fix url json schema in serialization mode + * Fix for comparison of AnyUrl objects + * Properly fetch PEP 695 type params for functions, do not fetch annotations from signature + * Infer final fields with a default value as class variables in the mypy plugin + * Recursively unpack Literal values if using PEP 695 type aliases + * Override __subclasscheck__ on ModelMetaclass to avoid memory leak and performance issues + * Include JSON Schema input core schema in function schemas + * Add len to _BaseUrl to avoid TypeError + * Make sure the type reference is removed from the seen references + * Add FastAPI and SQLModel to third-party tests + * Improve discriminated union error message for invalid union variants + * Unpack PEP 695 type aliases if using the Annotated form + * Remove custom MRO implementation of Pydantic models + * Add pandera third-party tests + * Add ODMantic third-party tests + * Copy WithJsonSchema schema to avoid sharing mutated data + * Do not cache parametrized models when in the process of parametrizing another model + * Add discriminated union related metadata entries to the CoreMetadata definition + * Consolidate schema definitions logic in the _Definitions class + * Fix url serialization for unions + * Support initializing root model fields with values of the root type in the mypy plugin + * Move deque schema gen to GenerateSchema class + ------------------------------------------------------------------- Fri Jan 24 15:21:26 UTC 2025 - ecsos diff --git a/python-pydantic.spec b/python-pydantic.spec index c231087..e421ad4 100644 --- a/python-pydantic.spec +++ b/python-pydantic.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-pydantic # # Copyright (c) 2025 SUSE LLC # Copyright (c) 2019, Martin Hauke @@ -27,7 +27,7 @@ %endif %{?sle15_python_module_pythons} Name: python-pydantic%{psuffix} -Version: 2.10.6 +Version: 2.11.3 Release: 0 Summary: Data validation and settings management using python type hinting License: MIT @@ -37,7 +37,7 @@ BuildRequires: %{python_module hatch-fancy-pypi-readme} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module packaging} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pydantic-core >= 2.27.2} +BuildRequires: %{python_module pydantic-core >= 2.33.1} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -51,16 +51,18 @@ BuildRequires: %{python_module pydantic = %{version}} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest-examples} BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-run-parallel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dotenv >= 0.10.4} BuildRequires: %{python_module rich} +BuildRequires: %{python_module typing-inspection} %endif Requires: python-annotated-types >= 0.4.0 %if 0%{?python_version_nodots} < 310 Requires: python-eval-type-backport %endif Requires: python-pydantic-core >= 2.27.2 -Requires: python-typing-extensions >= 4.6.1 +Requires: python-typing-extensions >= 4.12.2 BuildArch: noarch %python_subpackages