stubber.utils.makeversionhdr

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

Functions

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

return the version info from the git repository specified.

Module Contents

stubber.utils.makeversionhdr.get_version_info_from_git(path: pathlib.Path | None = None) 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 (Optional[pathlib.Path])

Return type:

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