semantic_release.version.declarations.toml module¶
- class semantic_release.version.declarations.toml.TomlVersionDeclaration(path: Path | str, search_text: str, stamp_format: VersionStampType)[source]¶
Bases:
IVersionReplacer
- property content: str¶
A cached property that stores the content of the configured source file.
- classmethod from_string_definition(replacement_def: str) TomlVersionDeclaration [source]¶
create an instance of self from a string representing one item of the “version_toml” list in the configuration
- parse() set[Version] [source]¶
Look for the version in the source content
Deprecated since version 9.20.0: Function is unused and will be removed in a future release