All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ross Burton <ross.burton@arm.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH 1/2] vendor.txt: add tomli
Date: Mon,  7 Sep 2026 16:46:53 +0100	[thread overview]
Message-ID: <20260907154654.32166-1-ross.burton@arm.com> (raw)

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



             reply	other threads:[~2026-09-07 15:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 15:46 Ross Burton [this message]
2026-09-07 15:46 ` [PATCH 2/2] lib/bb/_vendor: resync to add tomli Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260907154654.32166-1-ross.burton@arm.com \
    --to=ross.burton@arm.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.