mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-26 10:17:01 +00:00
Changes: - Breaking (1.24): drop Python < 3.10; Python 3.15 wheels. - Robustness fixes: error handling after PyList_SetItem/PyList_Append, crash serializing a list modified on the fly, RawJSON constructor memory leak, MM_COERCE_KEYS_TO_STRINGS with sort_keys=True. - 1.26: reject JSON input truncated at an embedded NUL (also in Validator), validate number_mode, reject oversized datetime/UUID/ parse mode values, normalize Decimal NaN variants, Windows ARM64 build. - Bundled rapidjson updated to current upstream master (1.21). AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
39 lines
1.3 KiB
BlitzBasic
39 lines
1.3 KiB
BlitzBasic
SUMMARY = "Python wrapper around rapidjson"
|
|
HOMEPAGE = "https://github.com/python-rapidjson/python-rapidjson"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=6fe0b2465366662d7cfa6793ccbab563"
|
|
|
|
SRC_URI[sha256sum] = "db95af0b5ed5f89d4f91480477a0ea8c7646283e489dd9046e28503e85e08f98"
|
|
|
|
# Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe
|
|
inherit setuptools3 pypi ptest-python-pytest
|
|
|
|
PYPI_PACKAGE = "python-rapidjson"
|
|
|
|
SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}"
|
|
|
|
DEPENDS += " \
|
|
rapidjson \
|
|
"
|
|
|
|
# Adding required python package for the ptest (pytest and pytest->automake report translation)
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-pytz \
|
|
"
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-core \
|
|
"
|
|
|
|
do_install_ptest:append() {
|
|
# test_endarray_leak asserts sys.getrefcount(j1['v']) == 3, but modern
|
|
# CPython's specialized dict/subscript bytecode holds one fewer temporary
|
|
# reference during the call, so the real count is 2 regardless of
|
|
# environment (reproduces on plain upstream CPython 3.13, unrelated to
|
|
# this target). Upstream test-authoring assumption broken by CPython
|
|
# internals, not a packaging issue.
|
|
sed -i -e "/--automake/ s/$/ -k 'not test_endarray_leak'/" \
|
|
${D}${PTEST_PATH}/run-ptest
|
|
}
|