diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-07-22 08:39:02 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-07-23 08:46:33 -0700 |
commit | 64c46bbb7264957cf0145047fa7825ee3ca73ad1 (patch) | |
tree | 6cdbe4a54cb68093e62b992b27d636e126cef6a5 /meta-python/recipes-devtools | |
parent | 67c5a7a7eb6dcc54e69637c263dda38a3b9a8420 (diff) | |
download | meta-openembedded-64c46bbb7264957cf0145047fa7825ee3ca73ad1.tar.gz |
python3-pydantic: Upgrade to 2.11.7
Fix build with pydantic-core 2.35.2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch | 36 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb (renamed from meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb) | 5 |
2 files changed, 38 insertions, 3 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 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 @@ | |||
1 | From 6558daf87f8ae156f913c0e76403cbffee40e3cc Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 22 Jul 2025 11:46:35 -0700 | ||
4 | Subject: [PATCH] pyprojects: Bump pydantic-core to 2.35.2 | ||
5 | |||
6 | This matches with recipe in meta-python | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-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.3.bb b/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" | |||
11 | 11 | ||
12 | inherit python_hatchling ptest-python-pytest | 12 | inherit python_hatchling ptest-python-pytest |
13 | 13 | ||
14 | SRCREV = "bce81efdeac1cbefd0196b478a32aa2586bd595a" | 14 | SRCREV = "702aaa6354cc30ae815676c57a8bbb4557ccb295" |
15 | PV .= "+git" | 15 | PV .= "+git" |
16 | SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main" | 16 | SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main" |
17 | 17 | SRC_URI += "file://0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch" | |
18 | |||
19 | DEPENDS += "python3-hatch-fancy-pypi-readme-native" | 18 | DEPENDS += "python3-hatch-fancy-pypi-readme-native" |
20 | 19 | ||
21 | RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core." | 20 | RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core." |