summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2025-11-20 18:58:53 +0200
committerKhem Raj <raj.khem@gmail.com>2025-11-20 10:30:33 -0800
commitaf4866a42932afbc3f4104c4dbc2f3e95f0227ff (patch)
tree5263cc889366d8cc7800bdee3b5080f5882c313e /meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb
parent80d071ba7e22a6baf9b1003481fcc83830e45cc9 (diff)
downloadmeta-openembedded-af4866a42932afbc3f4104c4dbc2f3e95f0227ff.tar.gz
python3-pydantic: Upgrade 2.12.0 -> 2.12.4
Upgrade to release python3-pydantic: - Fix issue with forward references in parent TypedDict classes - Exclude fields with exclude_if from JSON Schema required fields - Revert URL percent-encoding of credentials in the build() method of the AnyUrl and Dsn types - Add type inference for IP address types - Avoid getting default values from defaultdict - Fix issue with field serializers on nested typed dictionaries - Add more pydantic-core builds for the three-threaded version of Python 3.14 This work was sponsored by GOVCERT.LU Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb73
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb
new file mode 100644
index 0000000000..13035f4808
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb
@@ -0,0 +1,73 @@
1SUMMARY = "Data validation using Python type hinting"
2DESCRIPTION = "Data validation and settings management using Python \
3type hints.\
4\
5Fast and extensible, Pydantic plays nicely with your linters/IDE/brain. \
6Define how data should be in pure, canonical Python 3.7+; validate it with \
7Pydantic."
8HOMEPAGE = "https://github.com/samuelcolvin/pydantic"
9LICENSE = "MIT"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
11
12inherit python_hatchling ptest-python-pytest
13
14SRCREV = "5c842dfc9c245fb37aa1f5ec5b55c1aed10bd7e6"
15PV .= "+git"
16SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=v2.12-fixes"
17DEPENDS += "python3-hatch-fancy-pypi-readme-native"
18
19RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core."
20
21RDEPENDS:${PN} += "\
22 python3-annotated-types \
23 python3-core \
24 python3-datetime \
25 python3-image \
26 python3-io \
27 python3-json \
28 python3-jsonschema \
29 python3-logging \
30 python3-netclient \
31 python3-numbers \
32 python3-profile \
33 python3-pydantic-core \
34 python3-typing-extensions \
35 python3-typing-inspection \
36 python3-tzdata \
37 python3-zoneinfo \
38"
39
40RDEPENDS:${PN}-ptest += "\
41 python3-ansi2html \
42 python3-coverage \
43 python3-cloudpickle \
44 python3-dirty-equals \
45 python3-email-validator \
46 python3-fastjsonschema \
47 python3-greenlet \
48 python3-html \
49 python3-hypothesis \
50 python3-mypy \
51 python3-packaging \
52 python3-pydoc \
53 python3-pytest-codspeed \
54 python3-pytest-mock \
55 python3-pytz \
56 python3-rich \
57 python3-sqlalchemy \
58 python3-unixadmin \
59"
60
61do_install_ptest:append() {
62 cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
63 # Requires 'ruff' (python3-ruff) which we cannot build
64 # until we have Rust 1.71+ in oe-core
65 rm -f ${D}${PTEST_PATH}/tests/test_docs.py
66 # We are not trying to support mypy
67 rm -f ${D}${PTEST_PATH}/tests/test_mypy.py
68 # We are not trying to run benchmarks
69 rm -rf ${D}${PTEST_PATH}/tests/benchmarks
70 sed -i -e "/--automake/ s/$/ -k 'not test_config_validation_error_cause and not test_dataclass_config_validate_default and not test_annotated_validator_nested and not test_use_bare and not test_use_no_fields and not test_validator_bad_fields_throws_configerror and not test_assert_raises_validation_error and not test_model_config_validate_default and not test_readonly_qualifier_warning'/" ${D}${PTEST_PATH}/run-ptest
71}
72
73BBCLASSEXTEND = "native nativesdk"