summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-02-22 10:22:33 +0800
committerKhem Raj <raj.khem@gmail.com>2024-02-21 20:00:23 -0800
commit33236c4c1bd18b52d21417f3f6f38ddcec67e2a9 (patch)
treeb003c9f7e1c705000ce8a44a96e8954202c4003c /meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb
parente8770670fb61b851f9657be1bb5f77ed3732dadf (diff)
downloadmeta-openembedded-33236c4c1bd18b52d21417f3f6f38ddcec67e2a9.tar.gz
python3-pydantic: upgrade 2.5.3 -> 2.6.0
Changelog: ============ -Drop Python3.7 support -Drop Python 3.7, and PyPy 3.7 and 3.8 -Use positional-only self in BaseModel constructor, so no field name can ever conflict with it -Make @validate_call return a function instead of a custom descriptor - fixes binding issue with inheritance and adds self/cls argument to validation errors -Exclude BaseModel docstring from JSON schema description -Introducing classproperty decorator for model_computed_fields -Explicitly raise an error if field names clashes with types -Use stricter serializer for unions of simple types Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb
new file mode 100644
index 0000000000..af465f4230
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb
@@ -0,0 +1,53 @@
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 pypi python_hatchling
13
14SRC_URI[sha256sum] = "ae887bd94eb404b09d86e4d12f93893bdca79d766e738528c6fa1c849f3c6bcf"
15
16DEPENDS += "python3-hatch-fancy-pypi-readme-native"
17
18RDEPENDS:${PN} += "\
19 python3-annotated-types \
20 python3-core \
21 python3-datetime \
22 python3-image \
23 python3-io \
24 python3-json \
25 python3-logging \
26 python3-netclient \
27 python3-numbers \
28 python3-profile \
29 python3-pydantic-core \
30 python3-typing-extensions \
31"
32
33inherit ptest
34SRC_URI += "file://run-ptest"
35RDEPENDS:${PN}-ptest += "\
36 python3-cloudpickle \
37 python3-dirty-equals \
38 python3-pytest \
39 python3-pytest-mock \
40 python3-unittest-automake-output \
41"
42
43do_install_ptest() {
44 cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
45 # Requires 'ruff' (python3-ruff) which we cannot build
46 # until we have Rust 1.71+ in oe-core
47 rm -f ${D}${PTEST_PATH}/tests/test_docs.py
48 # We are not trying to support mypy
49 rm -f ${D}${PTEST_PATH}/tests/test_mypy.py
50 # We are not trying to run benchmarks
51 rm -rf ${D}${PTEST_PATH}/tests/benchmarks
52}
53