bodnuti

Deterministic checks of Yocto Project & OpenEmbedded patches.


[PATCH] python_flit_core: Drop upper bounds on flit_core in build requires

List
openembedded-core
Thread
lore
Author
Khem Raj
Last message
2026-11-29 07:05
Result
1 finding ยท 1 style finding
Checked against
openembedded-core master
Base
39019629a4ad

[PATCH] python_flit_core: Drop upper bounds on flit_core in build requires

warning oelint oelint.task.nopythonprefix meta/classes-recipe/python_flit_core.bbclass:25
Tasks that don't contain valid python code (e.g. shell code), should not be prefixed with python in function header
22}23do_configure[prefuncs] += "python_flit_core_relax_requires"2425python_flit_core_do_manual_build () {26    cd ${PEP517_SOURCE_PATH}27    nativepython3 -m flit_core.wheel --outdir ${PEP517_WHEEL_PATH} .28}

Model, unverified: The function body is plain shell (if/sed), not Python, so the `python_` prefix in the function name is misleading per OE naming conventions. Fix: Rename the function to something like `flit_core_relax_requires` (without the `python_` prefix) since the body is pure shell, or add a `# shell` comment if the naming convention requires the class-name prefix for namespacing.

Show 1 style finding
info oelint oelint.task.docstrings meta/classes-recipe/python_flit_core.bbclass:25
Every custom task should have a doc string set by task[doc] = '...'
22}23do_configure[prefuncs] += "python_flit_core_relax_requires"2425python_flit_core_do_manual_build () {26    cd ${PEP517_SOURCE_PATH}27    nativepython3 -m flit_core.wheel --outdir ${PEP517_WHEEL_PATH} .28}
Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

Took 8 min 2 s; 11435 tokens read, 111 written; confidence high; layer 4: not escalated (touches meta/classes-recipe/python_flit_core.bbclass): no [review.escalate]; prompt v5

No findings.

patchtest: 10 pass, 0 fail, 5 skip

Text report