stubber.publish.candidates
¶
Module Contents¶
Functions¶
|
returns a list of names of the subfolders of the given path |
|
get a list of versions for the given family and suffix |
|
get list of ports with frozen stubs for a given family and version |
|
get list of micropython ports for a given family and version |
|
get list of micropython boards for a given family version and board |
|
generate a list of possible firmware stubs for the given family (, version port and board) ? |
|
generate a list of possible documentation stub candidates for the given family and version. |
|
generate a list of possible firmware stub candidates for the given family and version. |
Attributes¶
This is the oldest MicroPython version to build the stubs on |
|
- stubber.publish.candidates.OLDEST_VERSION = 1.16¶
This is the oldest MicroPython version to build the stubs on
- stubber.publish.candidates.V_LATEST = latest¶
- stubber.publish.candidates.subfolder_names(path: pathlib.Path)¶
returns a list of names of the subfolders of the given path
- Parameters
path (pathlib.Path) –
- stubber.publish.candidates.version_candidates(suffix: str, prefix='.*', *, path=CONFIG.stub_path, oldest=OLDEST_VERSION) Generator[str, None, None] ¶
get a list of versions for the given family and suffix
- stubber.publish.candidates.list_frozen_ports(family: str = 'micropython', version: str = V_LATEST, path=CONFIG.stub_path)¶
get list of ports with frozen stubs for a given family and version
- stubber.publish.candidates.list_micropython_ports(family: str = 'micropython', mpy_path=CONFIG.mpy_path)¶
get list of micropython ports for a given family and version
- Parameters
family (str) –
- stubber.publish.candidates.list_micropython_port_boards(port: str, family: str = 'micropython', mpy_path=CONFIG.mpy_path)¶
get list of micropython boards for a given family version and board
- stubber.publish.candidates.frozen_candidates(family: str = 'micropython', versions: Union[str, List[str]] = V_LATEST, ports: Union[str, List[str]] = 'auto', boards: Union[str, List[str]] = 'auto', *, path=CONFIG.stub_path) Generator[Dict[str, Any], None, None] ¶
generate a list of possible firmware stubs for the given family (, version port and board) ? - family = micropython
board and port are ignored, they are looked up from the available frozen stubs
versions = ‘latest’ , ‘auto’ or a list of versions
port = ‘auto’ or a specific port
board = ‘auto’ or a specific board, ‘GENERIC’ must be specified in ALLCAPS
- stubber.publish.candidates.docstub_candidates(family: str = 'micropython', versions: Union[str, List[str]] = V_LATEST, path=CONFIG.stub_path)¶
generate a list of possible documentation stub candidates for the given family and version.
Note that the folders do not need to exist, with the exeption of auto which will scan the stubs folder for versions of docstubs
- stubber.publish.candidates.firmware_candidates(family: str = 'micropython', versions: Union[str, List[str]] = V_LATEST, *, mpy_path=CONFIG.mpy_path, pt=FIRMWARE_STUBS)¶
generate a list of possible firmware stub candidates for the given family and version. list is basesed on the micropython repo /ports/<list of ports>/boards/<list of boards>