summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-08-01 16:10:00 -0700
committerKhem Raj <raj.khem@gmail.com>2025-08-01 16:12:05 -0700
commit10385d468eb44d42b43d0b499ea1bf04caa5a6d4 (patch)
tree5a6f0ad0d1b0f5d344b9faa88ac501636750c02e /meta-python
parent825ee9e7aec0418d81f14bdc6bb6e22b92aed832 (diff)
downloadmeta-openembedded-10385d468eb44d42b43d0b499ea1bf04caa5a6d4.tar.gz
python3-pydantic: Upgrade to v2.12.0a1 prerelease
Needed for python3-pydantic-core v2.37+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch36
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb3
2 files changed, 1 insertions, 38 deletions
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
deleted file mode 100644
index 794ebdbbc7..0000000000
--- a/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From 6558daf87f8ae156f913c0e76403cbffee40e3cc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 22 Jul 2025 11:46:35 -0700
4Subject: [PATCH] pyprojects: Bump pydantic-core to 2.35.2
5
6This matches with recipe in meta-python
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 pyproject.toml | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15--- a/pyproject.toml
16+++ b/pyproject.toml
17@@ -48,7 +48,7 @@ dependencies = [
18 'typing-extensions>=4.13.0',
19 'annotated-types>=0.6.0',
20 # Keep this in sync with the version in the `check_pydantic_core_version()` function:
21- 'pydantic-core==2.35.1',
22+ 'pydantic-core==2.35.2',
23 'typing-inspection>=0.4.0',
24 ]
25 dynamic = ['version', 'readme']
26--- a/pydantic/version.py
27+++ b/pydantic/version.py
28@@ -66,7 +66,7 @@ def version_info() -> str:
29 def check_pydantic_core_version() -> bool:
30 """Check that the installed `pydantic-core` dependency is compatible."""
31 # Keep this in sync with the version constraint in the `pyproject.toml` dependencies:
32- return __pydantic_core_version__ == '2.35.1'
33+ return __pydantic_core_version__ == '2.35.2'
34
35
36 def parse_mypy_version(version: str) -> tuple[int, int, int]:
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
index 250a433726..e603e7dccd 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
@@ -11,10 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
11 11
12inherit python_hatchling ptest-python-pytest 12inherit python_hatchling ptest-python-pytest
13 13
14SRCREV = "702aaa6354cc30ae815676c57a8bbb4557ccb295" 14SRCREV = "9b52422377d974ffc3de4e8b0bf7faab1acf2ec4"
15PV .= "+git" 15PV .= "+git"
16SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main" 16SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
17SRC_URI += "file://0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch"
18DEPENDS += "python3-hatch-fancy-pypi-readme-native" 17DEPENDS += "python3-hatch-fancy-pypi-readme-native"
19 18
20RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core." 19RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core."