All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] vendor.txt: add tomli
@ 2026-09-07 15:46 Ross Burton
  2026-09-07 15:46 ` [PATCH 2/2] lib/bb/_vendor: resync to " Ross Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Ross Burton @ 2026-09-07 15:46 UTC (permalink / raw)
  To: bitbake-devel

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(+)

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
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-07 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 15:46 [PATCH 1/2] vendor.txt: add tomli Ross Burton
2026-09-07 15:46 ` [PATCH 2/2] lib/bb/_vendor: resync to " Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.