summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-02-27 11:05:07 -0800
committerKhem Raj <raj.khem@gmail.com>2024-02-27 17:50:12 -0800
commitce96ca0dac0b358c826a89f77ab3b603c3e0446e (patch)
tree900bf4f0f674cbd54205b3712f9343971bc98259 /meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb
parentf69ee29d572f158984aa49f6548a8ab6da83c7ba (diff)
downloadmeta-openembedded-ce96ca0dac0b358c826a89f77ab3b603c3e0446e.tar.gz
python3-pydantic-core,python3-pydantic: Update to 2.16.3 and 2.6.3 respectively
[1] [2] [3] [3] are the ChangeLogs [1] https://github.com/pydantic/pydantic-core/releases/tag/v2.16.3 [2] https://github.com/pydantic/pydantic/releases/tag/v2.6.3 [3] https://github.com/pydantic/pydantic/releases/tag/v2.6.2 [4] https://github.com/pydantic/pydantic/releases/tag/v2.6.1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb
new file mode 100644
index 0000000000..ef48c0020d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb
@@ -0,0 +1,51 @@
1SUMMARY = "Provides the core functionality for pydantic validation and serialization."
2DESCRIPTION = "This package provides the core functionality for \
3pydantic validation and serialization.\
4\
5Pydantic-core is currently around 17x faster than pydantic V1."
6HOMEPAGE = "https://github.com/pydantic/pydantic-core"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c"
10
11SRC_URI[sha256sum] = "1cac689f80a3abab2d3c0048b29eea5751114054f032a941a32de4c852c59cad"
12
13DEPENDS = "python3-maturin-native python3-typing-extensions"
14
15require ${BPN}-crates.inc
16
17inherit pypi cargo-update-recipe-crates python_maturin
18
19S = "${WORKDIR}/pydantic_core-${PV}"
20
21PYPI_ARCHIVE_NAME = "pydantic_core-${PV}.${PYPI_PACKAGE_EXT}"
22
23RDEPENDS:${PN} += "python3-typing-extensions"
24
25INSANE_SKIP:${PN} = "already-stripped"
26
27inherit ptest
28SRC_URI += "file://run-ptest"
29RDEPENDS:${PN}-ptest += "\
30 python3-dirty-equals \
31 python3-hypothesis \
32 python3-pytest \
33 python3-pytest-mock \
34 python3-unittest-automake-output \
35"
36
37do_install:append() {
38 for f in ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/_pydantic_core.*.so
39 do
40 fname=`basename $f`
41 lname=`echo $fname | sed 's/musl/gnu/'`
42 if [ "$fname" != "$lname" ]; then
43 mv $f ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/$lname
44 fi
45 done
46}
47
48do_install_ptest() {
49 cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
50 rm -rf ${D}${PTEST_PATH}/tests/benchmarks
51}