mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

The updated of python-3-pydantic requires python3-pydantic-core to be updated to version 2.16.1 or later. Update the denpendencies for current python3-pydantic: ====================================================== Version up: Bump ahash from 0.8.6 to 0.8.7 Bump base64 from 0.21.5 to 0.21.7 Bump form_urlencoded from 1.2.0 to 1.2.1 Bump allocator-api2 from 0.2.16 to Bump hashbrown from 0.14.0 to 0.14.3 Bump idna from 0.4.0 to 0.5.0 Bump jiter from 0.0.4 to 0.0.6 Bump percent-encoding from 2.3.0 to 2.3.1 Bump proc-macro2 from 1.0.69 to 1.0.76 Bump pyo3 from 0.20.0 to 0.20.2 Bump pyo3-build-config from 0.20.0 to 0.20.2 Bump pyo3-ffi from 0.20.0 to 0.20.2 Bump pyo3-macros from 0.20.0 to 0.20.2 Bump pyo3-macros-backend from 0.20.0 to 0.20.2 Bump quote from 1.0.29 to 1.0.35 Bump serde from 1.0.190 to 1.0.195 Bump serde_derive from 1.0.190 to 1.0.195 Bump serde_json from 1.0.108 to 1.0.109 Bump smallvec from 1.11.1 to 1.11.2 Bump syn from 2.0.38 to 2.0.48 Bump url from 2.4.1 to 2.5.0 Bump uuid from 1.5.0 to 1.6.1 Bump zerocopy from 0.7.20 to 0.7.32 Bump zerocopy-derive from 0.7.20 to 0.7.32 New dependency: allocator-api2 Changelog: https://github.com/pydantic/pydantic-core/releases Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
52 lines
1.5 KiB
BlitzBasic
52 lines
1.5 KiB
BlitzBasic
SUMMARY = "Provides the core functionality for pydantic validation and serialization."
|
|
DESCRIPTION = "This package provides the core functionality for \
|
|
pydantic validation and serialization.\
|
|
\
|
|
Pydantic-core is currently around 17x faster than pydantic V1."
|
|
HOMEPAGE = "https://github.com/pydantic/pydantic-core"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c"
|
|
|
|
SRC_URI[sha256sum] = "0ba503850d8b8dcc18391f10de896ae51d37fe5fe43dbfb6a35c5c5cad271a06"
|
|
|
|
DEPENDS = "python3-maturin-native python3-typing-extensions"
|
|
|
|
require ${BPN}-crates.inc
|
|
|
|
inherit pypi cargo-update-recipe-crates python_maturin
|
|
|
|
S = "${WORKDIR}/pydantic_core-${PV}"
|
|
|
|
PYPI_ARCHIVE_NAME = "pydantic_core-${PV}.${PYPI_PACKAGE_EXT}"
|
|
|
|
RDEPENDS:${PN} += "python3-typing-extensions"
|
|
|
|
INSANE_SKIP:${PN} = "already-stripped"
|
|
|
|
inherit ptest
|
|
SRC_URI += "file://run-ptest"
|
|
RDEPENDS:${PN}-ptest += "\
|
|
python3-dirty-equals \
|
|
python3-hypothesis \
|
|
python3-pytest \
|
|
python3-pytest-mock \
|
|
python3-unittest-automake-output \
|
|
"
|
|
|
|
do_install:append() {
|
|
for f in ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/_pydantic_core.*.so
|
|
do
|
|
fname=`basename $f`
|
|
lname=`echo $fname | sed 's/musl/gnu/'`
|
|
if [ "$fname" != "$lname" ]; then
|
|
mv $f ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/$lname
|
|
fi
|
|
done
|
|
}
|
|
|
|
do_install_ptest() {
|
|
cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
|
|
rm -rf ${D}${PTEST_PATH}/tests/benchmarks
|
|
}
|