models
Bump My Version configuration models.
Classes¶
Config
¶
Bases: BaseSettings
Bump Version configuration.
Attributes¶
resolved_filemap
property
¶
resolved_filemap: Dict[str, List[FileChange]]
Return the cached resolved filemap.
Functions¶
_resolve_filemap
¶
_resolve_filemap() -> Dict[str, List[FileChange]]
Return a map of filenames to file configs, expanding any globs.
version_spec
¶
version_spec(
version: Optional[str] = None,
) -> "VersionSpec"
Return the version specification.
FileChange
¶
Bases: BaseModel
A change to make to a file.
Functions¶
get_search_pattern
¶
get_search_pattern(
context: MutableMapping,
) -> Tuple[re.Pattern, str]
Render the search pattern and return the compiled regex pattern and the raw pattern.
Parameters:
context
-
The context to use for rendering the search pattern
TYPE:
MutableMapping
Returns:
PEP621Info
dataclass
¶
PEP621Info(version: Optional[str])
PEP 621 info, in particular, the static version number.