summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pydantic-core/0002-Dont-embed-RUSTFLAGS-in-final-binary.patch
diff options
context:
space:
mode:
authorFrank de Brabander <debrabander@gmail.com>2024-07-26 15:01:35 +0200
committerArmin Kuster <akuster808@gmail.com>2024-08-14 10:15:30 -0400
commita8870edeccb7bc3221ad19c23c42a78fc2700dc8 (patch)
tree9f24774e1a1593aa2d546d6cb257ae34a8074482 /meta-python/recipes-devtools/python/python3-pydantic-core/0002-Dont-embed-RUSTFLAGS-in-final-binary.patch
parent76f02096aaf7a473a49eebce7ee8d3de938c96e0 (diff)
downloadmeta-openembedded-a8870edeccb7bc3221ad19c23c42a78fc2700dc8.tar.gz
python3-pydantic-core: fix incompatible version
The recipe for pydantic currently is at version 2.7.3. This project specifies in its pyproject.toml that it depends on pydantic-core version 2.18.4. Because an older 2.16.3 version of pydantic-core was used now, a simple bit of code will break. from enum import Enum from pydantic import BaseModel class Color(str, Enum): RED = "RED" BLUE = "BLUE" class Car(BaseModel): color: Color print(Car(color=Color.RED)) This will upgrade the python3-pydantic-core recipe to make it compatible with python3-pydantic, so that the above snippet of code will no longer fail. Two patches are removed, these backports are now included in the upstream code. A new patch is added to set the required rust compiler from 1.76 to 1.75. Version 1.76 is not actually needed. File python3-pydantic-core-crates.inc is regenerated by running 'bitbake -c update_crates python3-pydantic-core'. The recipes RDEPENDS now includes python3-compression. The pydantic schema validator imports 'importlib.metadata' which wants to import 'zipfile'. The buildpaths QA check is skipped. This should be fixed at some point, but it was already failing before this change. Signed-off-by: Frank de Brabander <debrabander@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Backport from Styhead bee8b9bbc48e5ee9a4b67aed09027e62143eb34c as part of the overall scarthgap fix Fix typo in python3-pydantic version, it was 2.7.3 not 2.7.2 Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydantic-core/0002-Dont-embed-RUSTFLAGS-in-final-binary.patch')
0 files changed, 0 insertions, 0 deletions