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-08-01 18:28:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydantic (Old)
 and      /work/SRC/openSUSE:Factory/.python-pydantic.new.16738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pydantic"

Sat Aug  1 18:28:03 2026 rev:41 rq:1368260 version:2.13.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydantic/python-pydantic.changes  
2026-05-12 19:26:31.690738734 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pydantic.new.16738/python-pydantic.changes   
    2026-08-01 18:28:36.118302337 +0200
@@ -1,0 +2,6 @@
+Tue Jul 28 01:32:49 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-ruff-0.16.patch:
+  * Support changes required by ruff 0.16.
+
+-------------------------------------------------------------------

New:
----
  support-ruff-0.16.patch

----------(New B)----------
  New:
- Add patch support-ruff-0.16.patch:
  * Support changes required by ruff 0.16.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pydantic.spec ++++++
--- /var/tmp/diff_new_pack.YK3Go7/_old  2026-08-01 18:28:36.714321475 +0200
+++ /var/tmp/diff_new_pack.YK3Go7/_new  2026-08-01 18:28:36.718321603 +0200
@@ -33,6 +33,8 @@
 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-OPENSUSE Support changes required by ruff 0.16
+Patch0:         support-ruff-0.16.patch
 BuildRequires:  %{python_module base >= 3.9}
 BuildRequires:  %{python_module hatch-fancy-pypi-readme}
 BuildRequires:  %{python_module hatchling}

++++++ support-ruff-0.16.patch ++++++
Index: pydantic-2.13.4/pydantic-core/python/pydantic_core/core_schema.py
===================================================================
--- pydantic-2.13.4.orig/pydantic-core/python/pydantic_core/core_schema.py
+++ pydantic-2.13.4/pydantic-core/python/pydantic_core/core_schema.py
@@ -1168,12 +1168,12 @@ def datetime_schema(
     Returns a schema that matches a datetime value, e.g.:
 
     ```py
-    from datetime import datetime
+    from datetime import datetime, timezone
     from pydantic_core import SchemaValidator, core_schema
 
     schema = core_schema.datetime_schema()
     v = SchemaValidator(schema)
-    now = datetime.now()
+    now = datetime.now(tz=timezone.utc)
     assert v.validate_python(str(now)) == now
     ```
 
@@ -3239,8 +3239,8 @@ def model_schema(
     class MyModel:
         __slots__ = (
             '__dict__',
-            '__pydantic_fields_set__',
             '__pydantic_extra__',
+            '__pydantic_fields_set__',
             '__pydantic_private__',
         )
 
@@ -3769,7 +3769,7 @@ def call_schema(
         return_schema=core_schema.str_schema(),
     )
     v = SchemaValidator(schema)
-    assert v.validate_python((('hello', True))) == 'helloFalse'
+    assert v.validate_python(('hello', True)) == 'helloFalse'
     ```
 
     Args:
@@ -3881,8 +3881,8 @@ def json_schema(
     class MyModel:
         __slots__ = (
             '__dict__',
-            '__pydantic_fields_set__',
             '__pydantic_extra__',
+            '__pydantic_fields_set__',
             '__pydantic_private__',
         )
         field_a: str
Index: pydantic-2.13.4/pydantic-core/tests/test_docstrings.py
===================================================================
--- pydantic-2.13.4.orig/pydantic-core/tests/test_docstrings.py
+++ pydantic-2.13.4/pydantic-core/tests/test_docstrings.py
@@ -22,7 +22,7 @@ PYDANTIC_CORE_DIR = Path(__file__).resol
 )
 @pytest.mark.thread_unsafe  # TODO investigate why pytest_examples seems to be 
thread unsafe here
 def test_docstrings(example: CodeExample, eval_example: EvalExample):
-    eval_example.set_config(quotes='single')
+    eval_example.set_config(quotes='single', ruff_ignore=['I001'])
 
     if eval_example.update_examples:
         eval_example.format(example)

Reply via email to