[PATCH] python: Add a top-level requirements.txt file
    Heinrich Schuchardt 
    xypron.glpk at gmx.de
       
    Thu Oct 23 20:50:36 CEST 2025
    
    
  
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.
Either the individual files should be feature complete for each CI step, or we should move to a single requirements file.
Best regards
Heinrich
    
    
More information about the U-Boot
mailing list