diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2026-02-03 11:13:50 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-04 21:01:38 -0800 |
| commit | 6c19c5e0d4464f1ccad183f0ef5f65c9fcd8a7e8 (patch) | |
| tree | a2594d71399e4f02dc2009bd24836b737b1e0f0d /meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | |
| parent | 89977887c34544a8b86f8ccdff76508c495e5c3d (diff) | |
| download | meta-openembedded-6c19c5e0d4464f1ccad183f0ef5f65c9fcd8a7e8.tar.gz | |
python3-orjson: upgrade 3.10.17 -> 3.11.6
Update python3-orjson-crates.inc
Add patches to fix compilation for arm64/riscv64 by gating x86/x86_64 only
AVX512 feature(s). The approach has thus far been rejected by upstream:
https://github.com/ijl/orjson/pull/609.
Release Notes:
https://github.com/ijl/orjson/blob/master/CHANGELOG.md#3116---2026-01-29
* orjson now includes code licensed under the Mozilla Public License 2.0
(MPL-2.0).
* Drop support for Python 3.9.
* ABI compatibility with CPython 3.15 alpha 5.
* Build now depends on Rust 1.89 or later instead of 1.85.
* Fix sporadic crash serializing deeply nested list of dict.
* Show simple error message instead of traceback when attempting to build
on unsupported Python versions.
* ABI compatibility with CPython 3.15 alpha 1.
* Publish PyPI wheels for 3.14 and manylinux i686, manylinux arm7, manylinux
ppc64le, manylinux s390x.
* Build now requires a C compiler.
* Fix PyPI project metadata when using maturin 1.9.2 or later.
* Fix build using Rust 1.89 on amd64.
* Build now depends on Rust 1.85 or later instead of 1.82.
* Publish PyPI wheels for CPython 3.14.
* Fix str on big-endian architectures. This was introduced in 3.11.0.
* Use a deserialization buffer allocated per request instead of a shared
buffer allocated on import.
* ABI compatibility with CPython 3.14 beta 4.
* Fix incorrect escaping of the vertical tabulation character. This was
introduced in 3.10.17.
Comparing changes:
https://github.com/ijl/orjson/compare/3.10.17...3.11.6
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb new file mode 100644 index 0000000000..e26ca77d91 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | SUMMARY = "orjson is a fast, correct JSON library for Python" | ||
| 2 | HOMEPAGE = "https://pypi.org/project/orjson/" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d" | ||
| 5 | |||
| 6 | SRC_URI[sha256sum] = "0a54c72259f35299fd033042367df781c2f66d10252955ca1efb7db309b954cb" | ||
| 7 | |||
| 8 | CVE_PRODUCT = "orjson" | ||
| 9 | |||
| 10 | require ${BPN}-crates.inc | ||
| 11 | |||
| 12 | inherit pypi python_maturin cargo-update-recipe-crates | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://0001-Guard-avx512-module-with-x86-target-cfg.patch \ | ||
| 16 | file://0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch \ | ||
| 17 | " | ||
| 18 | DEPENDS = "python3-maturin-native" | ||
| 19 | |||
| 20 | RDEPENDS:${PN} += "python3-maturin python3-mypy" | ||
| 21 | |||
| 22 | do_compile:prepend() { | ||
| 23 | sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml | ||
| 24 | } | ||
| 25 | |||
| 26 | BBCLASSEXTEND = "native nativesdk" | ||
