summaryrefslogtreecommitdiff
path: root/tools/patman/__init__.py
AgeCommit message (Collapse)Author
2025-05-27patman: Add tests for CseriesSimon Glass
Add various tests for the Cseries functionality, including both direct and via-cmdline variants. Signed-off-by: Simon Glass <[email protected]>
2025-05-27patman: Add a Cseries classSimon Glass
This is the main class for dealing with series, across branches and the database. Signed-off-by: Simon Glass <[email protected]>
2025-05-27patman: Add a helper for managing cseriesSimon Glass
Add a module which includes helper functions for dealing with Cseries objects. Signed-off-by: Simon Glass <[email protected]>
2025-05-27patman: Add a simple database implementationSimon Glass
For recording series information, patman needs a database. Add a module which uses sqlite3 for this. It has a basic schema, enough to support a series subcommand. Signed-off-by: Simon Glass <[email protected]>
2025-05-27patman: Move common test code into a new moduleSimon Glass
The func_test file is quite large. In order to allow new tests to be added to a separate file, move the common test code into a separate class, to be inherited by other classes. Drop unnecessary imports in func_test Signed-off-by: Simon Glass <[email protected]>
2025-05-27patman: Add all files to __init__.pySimon Glass
Some files are missing from the __all__ list, so add then. Reformat the list to use more of the width of each line. Signed-off-by: Simon Glass <[email protected]>
2025-02-17u_boot_pylib: Move gitutil into the librarySimon Glass
Move this file into U-Boot's Python library, so that it is no-longer part of patman. This makes a start on: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/35 Signed-off-by: Simon Glass <[email protected]>
2023-03-08patman: Move library functions into a library directorySimon Glass
The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged separately and listed as a dependency of each tool. Signed-off-by: Simon Glass <[email protected]>
2023-01-05patman: rename main script to __main__.pyMaxim Cournoyer
This allows running the package as a Python module, like e.g.: $ python -m patman It also prevents Pytest from attempting to parse main.py, which would cause errors. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Maxim Cournoyer <[email protected]> Fix up main.py in __init__.py: Signed-off-by: Simon Glass <[email protected]>
2022-01-24patman: Update the list of modulesSimon Glass
Update the __init__ file to include recently added files. Add a license header while we are here. Signed-off-by: Simon Glass <[email protected]>
2015-07-28patman: add distutils based installerChris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with cd u-boot/tools/patman && python setup.py install There are also the usual distutils options for creating source/binary distributions of patman. Tested-by: Simon Glass <[email protected]> Signed-off-by: Chris Packham <[email protected]> Acked-by: Simon Glass <[email protected]>