| Message ID | 20260907154654.32166-1-ross.burton@arm.com |
|---|---|
| State | Accepted, archived |
| Commit | 1a3b0cb785577a7aa4ff7fb477ae1f84d0429ef4 |
| Headers | show |
| Series | [1/2] vendor.txt: add tomli | expand |
diff --git a/vendor.txt b/vendor.txt index 6ce8846c8c..8d5dcad77e 100644 --- a/vendor.txt +++ b/vendor.txt @@ -3,3 +3,4 @@ ply==3.10 progressbar==2.5 simplediff==1.1 typing_extensions==4.15.0 +tomli==2.4.1
tomli is the standalone TOML parser that became tomllib in Python 3.11. Add it to the vendored libraries so that bitbake/OE can always have a TOML parser. When bitbake depends on 3.11 onwards, this can be dropped. TOML is increasingly used as a sensible configuration file format, for example Python's pyproject.toml and Rust's Cargo.toml. Currently OE has code to parse Cargo.toml with a nested nativepython3, and pyproject.toml with regular expressions. By vendoring tomli into bitbake we can just import it directly and use it without needing to use nativepython3: try: import tomllib except ImportError import bb._vendor.tomli as tomllib Signed-off-by: Ross Burton <ross.burton@arm.com> --- vendor.txt | 1 + 1 file changed, 1 insertion(+)