stubber.utils.versions

Handle versions of micropython based on the git tags in the repo

Module Contents

Functions

clean_version(version, *[, build, patch, commit, ...])

Clean up and transform the many flavours of versions

checkedout_version(→ str)

Get the checked-out version of the repo

micropython_versions([start])

Get the list of micropython versions from github tags

Attributes

OLDEST_VERSION

This is the oldest MicroPython version to build the stubs on

V_PREVIEW

Latest preview version

SET_PREVIEW

stubber.utils.versions.OLDEST_VERSION = '1.16'

This is the oldest MicroPython version to build the stubs on

stubber.utils.versions.V_PREVIEW = 'preview'

Latest preview version

stubber.utils.versions.SET_PREVIEW
stubber.utils.versions.clean_version(version: str, *, build: bool = False, patch: bool = False, commit: bool = False, drop_v: bool = False, flat: bool = False)

Clean up and transform the many flavours of versions

Parameters:
stubber.utils.versions.checkedout_version(path: pathlib.Path, flat: bool = False) str

Get the checked-out version of the repo

Parameters:
Return type:

str

stubber.utils.versions.micropython_versions(start: str = 'v1.9.2')

Get the list of micropython versions from github tags

Parameters:

start (str) –