stubber.update_module_list

generate the list of modules that should be attempted to stub for this : - combine the modules from the different texts files - split the lines into individual module names - combine them in one set - remove the ones than cannot be stubbed - remove test modules, ending in _test - write updates to:

  • board/modulelist.txt

  • board/createstubs.py

  • TODO: remove the frozen modules from this list

  • TODO: bump patch number if there are actual changes

Module Contents

Functions

read_modules(→ Set[str])

read text files with modules per firmware.

update_module_list()

helper script

stubber.update_module_list.read_modules(path: pathlib.Path | None = None) Set[str]

read text files with modules per firmware. each contains the output of help(“modules”) - lines starting with # are comments. - split the other lines at whitespace seperator, - and add each module to a set

Parameters:

path (Optional[pathlib.Path]) –

Return type:

Set[str]

stubber.update_module_list.update_module_list()

helper script generate a few lines of code with all modules to be stubbed by createstubs