[PATCH] python: Add a top-level requirements.txt file

Tom Rini trini at konsulko.com
Thu Oct 23 23:28:59 CEST 2025


On Thu, Oct 23, 2025 at 07:50:36PM +0100, Heinrich Schuchardt wrote:
> Am 23. Oktober 2025 18:40:59 GMT+01:00 schrieb Tom Rini <trini at konsulko.com>:
> >A frequently reported problem is that someone misses a required python
> >package when doing a specific task within U-Boot. This is in turn
> >because each of our requirements.txt files only lists their direct
> >dependencies. It is not always clear that another tool has its own
> >requirements and thus something else fails. Solve this by having a top
> >level requirements.txt file for the project which in turn installs all
> >of our other project requirements.txt files.
> >
> >Signed-off-by: Tom Rini <trini at konsulko.com>
> >---
> >Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
> >Cc: Simon Glass <sjg at chromium.org>
> >Cc: Kory Maincent <kory.maincent at bootlin.com>
> >
> >As Kory is the most recent person to hit this, cc'ing them. I think this
> >is the right path forward and if agreed, I'll update documentation in a
> >follow-up.
> >---
> > requirements.txt | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> > create mode 100644 requirements.txt
> >
> >diff --git a/requirements.txt b/requirements.txt
> >new file mode 100644
> >index 000000000000..0fd08b9da17b
> >--- /dev/null
> >+++ b/requirements.txt
> >@@ -0,0 +1,8 @@
> >+# For ease of use, this is all requirements files for all portions
> >+# of U-Boot
> >+-r doc/sphinx/requirements.txt
> >+-r tools/u_boot_pylib/requirements.txt
> >+-r tools/buildman/requirements.txt
> >+-r tools/binman/requirements.txt
> >+-r tools/patman/requirements.txt
> >+-r test/py/requirements.txt
> 
> These individual files may require different versions of the same package.

They may not, that would break creating our containers for CI.

> Either the individual files should be feature complete for each CI
> step, or we should move to a single requirements file.

This would be even further against python best practices than we already
have been.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251023/80da93b9/attachment.sig>


More information about the U-Boot mailing list