diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2025-01-07 16:00:36 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-01-07 09:33:16 -0800 |
commit | 5b8fc10f86a107d3564ed1d3f51a9106eab92202 (patch) | |
tree | 3b0d5830b2fcbed89833ee65a55bb38f14cc63f1 /meta-python/recipes-devtools/python/python3-pydantic_2.10.4.bb | |
parent | 58f5a918b445acfba3785c0c420845f2e828d0ea (diff) | |
download | meta-openembedded-5b8fc10f86a107d3564ed1d3f51a9106eab92202.tar.gz |
python3-pydantic: Upgrade 2.10.2 -> 2.10.4
Upgrade to release 2.10.4:
- Fix for comparison of AnyUrl objects
- Properly fetch PEP 695 type params for functions, do not fetch
annotations from signature
- Include JSON Schema input core schema in function schemas
- Add len to _BaseUrl to avoid TypeError
- Make sure the type reference is removed from the seen references
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.10.4.bb')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic_2.10.4.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.10.4.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.10.4.bb new file mode 100644 index 0000000000..adfce81b66 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.10.4.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | SUMMARY = "Data validation using Python type hinting" | ||
2 | DESCRIPTION = "Data validation and settings management using Python \ | ||
3 | type hints.\ | ||
4 | \ | ||
5 | Fast and extensible, Pydantic plays nicely with your linters/IDE/brain. \ | ||
6 | Define how data should be in pure, canonical Python 3.7+; validate it with \ | ||
7 | Pydantic." | ||
8 | HOMEPAGE = "https://github.com/samuelcolvin/pydantic" | ||
9 | LICENSE = "MIT" | ||
10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6" | ||
11 | |||
12 | inherit pypi python_hatchling | ||
13 | |||
14 | SRC_URI[sha256sum] = "82f12e9723da6de4fe2ba888b5971157b3be7ad914267dea8f05f82b28254f06" | ||
15 | |||
16 | DEPENDS += "python3-hatch-fancy-pypi-readme-native" | ||
17 | |||
18 | RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core." | ||
19 | |||
20 | RDEPENDS:${PN} += "\ | ||
21 | python3-annotated-types \ | ||
22 | python3-core \ | ||
23 | python3-datetime \ | ||
24 | python3-image \ | ||
25 | python3-io \ | ||
26 | python3-json \ | ||
27 | python3-jsonschema \ | ||
28 | python3-logging \ | ||
29 | python3-netclient \ | ||
30 | python3-numbers \ | ||
31 | python3-profile \ | ||
32 | python3-pydantic-core \ | ||
33 | python3-typing-extensions \ | ||
34 | python3-tzdata \ | ||
35 | python3-zoneinfo \ | ||
36 | " | ||
37 | |||
38 | inherit ptest | ||
39 | SRC_URI += "file://run-ptest" | ||
40 | RDEPENDS:${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 \ | ||
54 | python3-pytest-codspeed \ | ||
55 | python3-pytest-mock \ | ||
56 | python3-pytz \ | ||
57 | python3-rich \ | ||
58 | python3-sqlalchemy \ | ||
59 | python3-unittest-automake-output \ | ||
60 | python3-unixadmin \ | ||
61 | " | ||
62 | |||
63 | do_install_ptest() { | ||
64 | cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ | ||
65 | # Requires 'ruff' (python3-ruff) which we cannot build | ||
66 | # until we have Rust 1.71+ in oe-core | ||
67 | rm -f ${D}${PTEST_PATH}/tests/test_docs.py | ||
68 | # We are not trying to support mypy | ||
69 | rm -f ${D}${PTEST_PATH}/tests/test_mypy.py | ||
70 | # We are not trying to run benchmarks | ||
71 | rm -rf ${D}${PTEST_PATH}/tests/benchmarks | ||
72 | 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'/" ${D}${PTEST_PATH}/run-ptest | ||
73 | } | ||