context
Context for rendering messages and tags.
Classes¶
Functions¶
base_context
¶
base_context(
scm_info: Optional[SCMInfo] = None,
) -> ChainMap
The default context for rendering messages and tags.
calver_string_to_regex
¶
calver_string_to_regex(calver_format: str) -> str
Convert the calver format string to a regex pattern.
get_context
¶
get_context(
config: Config,
current_version: Optional[Version] = None,
new_version: Optional[Version] = None,
) -> ChainMap
Return the context for rendering messages and tags.
get_datetime_info
¶
get_datetime_info(current_dt: datetime.datetime) -> dict
Return the full structure of the given datetime for formatting.
prefixed_environ
¶
prefixed_environ() -> dict
Return a dict of the environment with keys wrapped in ${}
.