stubber.utils.makeversionhdr

Code from micropyton project and adapted to use the same versioning scheme

Module Contents

Functions

get_version_info_from_git() → Tuple[Union[str, None], ...)

return the version info from the git repository specified.

stubber.utils.makeversionhdr.get_version_info_from_git(path: pathlib.Path = Path.cwd()) Tuple[str | None, str | None]

return the version info from the git repository specified. returns: a 2-tuple containing git_tag, short_hash

Parameters:

path (pathlib.Path) –

Return type:

Tuple[Union[str, None], Union[str, None]]