diff mbox series

[meta-python,2/3] python3-pydantic: Upgrade to 2.11.7

Message ID 20250723043336.3445593-2-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/3] python3-lief: Upgrade to 0.16.6 | expand

Commit Message

Khem Raj July 23, 2025, 4:33 a.m. UTC
Fix build with pydantic-core 2.35.2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...rojects-Bump-pydantic-core-to-2.35.2.patch | 36 +++++++++++++++++++
 ...c_2.11.3.bb => python3-pydantic_2.11.7.bb} |  5 ++-
 2 files changed, 38 insertions(+), 3 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.11.3.bb => python3-pydantic_2.11.7.bb} (95%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch b/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch
new file mode 100644
index 0000000000..794ebdbbc7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch
@@ -0,0 +1,36 @@ 
+From 6558daf87f8ae156f913c0e76403cbffee40e3cc Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 22 Jul 2025 11:46:35 -0700
+Subject: [PATCH] pyprojects: Bump pydantic-core to 2.35.2
+
+This matches with recipe in meta-python
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -48,7 +48,7 @@ dependencies = [
+     'typing-extensions>=4.13.0',
+     'annotated-types>=0.6.0',
+     # Keep this in sync with the version in the `check_pydantic_core_version()` function:
+-    'pydantic-core==2.35.1',
++    'pydantic-core==2.35.2',
+     'typing-inspection>=0.4.0',
+ ]
+ dynamic = ['version', 'readme']
+--- a/pydantic/version.py
++++ b/pydantic/version.py
+@@ -66,7 +66,7 @@ def version_info() -> str:
+ def check_pydantic_core_version() -> bool:
+     """Check that the installed `pydantic-core` dependency is compatible."""
+     # Keep this in sync with the version constraint in the `pyproject.toml` dependencies:
+-    return __pydantic_core_version__ == '2.35.1'
++    return __pydantic_core_version__ == '2.35.2'
+ 
+ 
+ def parse_mypy_version(version: str) -> tuple[int, int, int]:
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
similarity index 95%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
index 47c077853a..250a433726 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
@@ -11,11 +11,10 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
 inherit python_hatchling ptest-python-pytest
 
-SRCREV = "bce81efdeac1cbefd0196b478a32aa2586bd595a"
+SRCREV = "702aaa6354cc30ae815676c57a8bbb4557ccb295"
 PV .= "+git"
 SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
-
-
+SRC_URI += "file://0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch"
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
 RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core."