Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pydantic for openSUSE:Factory
checked in at 2026-04-18 21:31:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydantic (Old)
and /work/SRC/openSUSE:Factory/.python-pydantic.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydantic"
Sat Apr 18 21:31:33 2026 rev:39 rq:1347218 version:2.13.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydantic/python-pydantic.changes
2026-02-11 18:47:36.946273764 +0100
+++
/work/SRC/openSUSE:Factory/.python-pydantic.new.11940/python-pydantic.changes
2026-04-18 21:32:20.475715056 +0200
@@ -1,0 +2,75 @@
+Thu Apr 16 05:48:29 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Update to 2.13.1:
+ ## Notable changes include
+ * Add a new polymorphic_serialization option, solving issues with
+ serialize_as_any introduced in 2.12.
+ * Latest V1.10.26 release under the pydantic.v1 namespace. This version
+ includes support for Python 3.14.
+ * The pydantic-core repository was merged inside the main pydantic one.
+ ## New Features
+ * Allow default factories of private attributes to take validated model
+ data
+ * Add ascii_only option to StringConstraints
+ * Support exclude_if in computed fields
+ * Push down constraints in unions involving MISSING sentinel
+ * Add polymorphic_serialization option
+ * Support Root models with Literal root types as discriminator field types
+ ## Changes
+ * Warn when serializing fixed length tuples with too few items
+ * Track extra fields set after init in model_fields_set
+ * Do not include annotations that are not part of named tuple fields
+ * No longer fall back to trying all union members when the variant selected
+ by discriminator fails to serialize
+ * Use the complex() constructor unconditionally when validating complex
+ Python data
+ * Add support for three-tuple input for Decimal
+ * Align @field_serializer logic with @field_validator
+ * Make PydanticUserError a RuntimeError instead of a TypeError
+ * Remove redundant serialization attempts in nested unions
+ * Copy root value when making root model shallow copies
+ * Ensure deterministic JSON schema defaults by sorting sets
+ ## Fixes
+ * Change type of Any when synthesizing _build_sources for
+ BaseSettings.__init__() signature in the mypy plugin
+ * Fix model equality when using runtime extra configuration
+ * Support discriminator metadata outside union type alias
+ * Respect extras_schema when only extra_fields_behavior is set on the
+ config in JSON Schema generation for typed dictionaries
+ * Ensure __pydantic_private__ is set in model_construct() with
+ user-defined model_post_init()
+ * Handle all schema generation errors in InstanceOf
+ * Allow dynamic models created with create_model() to be used as
+ annotations in the Mypy plugin
+ * Check for PlaceholderNode in Mypy plugin
+ * Try other branches in smart union in case of omit errors
+ * Patch unset attributes with MISSING during model serialization with
+ exclude_unset
+ * Ensure custom __init__() is called when using model_validate_strings()
+ * Allow any type form to be used in validate_as()
+ * Fix FieldInfo rebuilding when parameterizing generic models with an
+ Annotated type
+ * Fix nested model schema deduplication in JSON schema generation
+ * Fix InitVar being ignored when using with the pydantic.Field() function
+ * Fix support for enums with NamedTuple as values
+ * Do not delete mock validator/serializer in rebuild_dataclass()
+ * Require test suite to pass with free threading, switch back to global
+ generic types cache
+ * Refactor __pydantic_extra__ annotation handling
+ * Do not add claim of UUID "safety" provision
+ * Use Python hash to perform lookup in tagged union serializer
+ * Do not emit serialization warning MISSING sentinel is present in a nested
+ model
+ * Do not eagerly evaluate annotations in signature logic
+ * Fix serialization of typed dict unions when exclude_none is set
+ * Do not reuse prebuilt serializers/validators on rebuilds
+ * Fix type annotation of field_definitions in create_model()
+ * Fix incorrect dataclass constructor signature when overriding class
+ kw_only with Field()
+ * Use typing.Union when replacing types under Python 3.14
+ * Improve ImportString error when internal imports fail
+ * Fix serializing complex numbers with negative zero imaginary part
+ * Preserve custom docstrings on stdlib dataclasses in JSON schema
+- Drop patch test.patch, merged upstream.
+
+-------------------------------------------------------------------
Old:
----
pydantic-2.12.5.tar.gz
test.patch
New:
----
pydantic-2.13.1.tar.gz
----------(Old B)----------
Old: * Preserve custom docstrings on stdlib dataclasses in JSON schema
- Drop patch test.patch, merged upstream.
----------(Old E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pydantic.spec ++++++
--- /var/tmp/diff_new_pack.CmAWJQ/_old 2026-04-18 21:32:21.655763001 +0200
+++ /var/tmp/diff_new_pack.CmAWJQ/_new 2026-04-18 21:32:21.667763489 +0200
@@ -27,20 +27,18 @@
%endif
%{?sle15_python_module_pythons}
Name: python-pydantic%{psuffix}
-Version: 2.12.5
+Version: 2.13.1
Release: 0
Summary: Data validation and settings management using python type
hinting
License: MIT
URL: https://github.com/pydantic/pydantic
Source:
https://github.com/pydantic/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM https://github.com/pydantic/pydantic/pull/12609 Remove
xfail marker on a PEP 649 related test
-Patch0: test.patch
+BuildRequires: %{python_module base >= 3.9}
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.41.5}
-BuildRequires: %{python_module wheel}
+BuildRequires: %{python_module pydantic-core = 2.46.1}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
@@ -48,21 +46,24 @@
BuildRequires: %{python_module cloudpickle}
BuildRequires: %{python_module dirty-equals}
BuildRequires: %{python_module email-validator >= 2.0}
+BuildRequires: %{python_module hypothesis}
+BuildRequires: %{python_module inline-snapshot}
BuildRequires: %{python_module jsonschema >= 4.23.0 }
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-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dotenv >= 0.10.4}
+BuildRequires: %{python_module pytz}
BuildRequires: %{python_module rich}
-BuildRequires: %{python_module typing-inspection}
%endif
Requires: python-annotated-types >= 0.6.0
-Requires: python-pydantic-core = 2.41.5
+Requires: python-pydantic-core = 2.46.1
Requires: python-typing-extensions >= 4.14.1
-Requires: python-typing-inspection
+Requires: python-typing-inspection >= 0.4.2
Recommends: python-email-validator >= 2.0
BuildArch: noarch
%python_subpackages
@@ -89,7 +90,8 @@
%check
%if %{with test}
# test_base64url[Base64UrlBytes-bytes-alphabet-vanilla] fails with patched
python314 https://github.com/pydantic/pydantic/issues/12778
-%pytest -k "not Base64UrlBytes-bytes-alphabet-vanilla"
+# README.md:18-68 different version of black
+%pytest -k "not (Base64UrlBytes-bytes-alphabet-vanilla or README.md:18-68)"
%endif
%if %{without test}
++++++ pydantic-2.12.5.tar.gz -> pydantic-2.13.1.tar.gz ++++++
++++ 99119 lines of diff (skipped)