repo_helper.release
Functions for making tagged releases.
New in version 2020.12.29.
Classes:
|
Class to bump the repository version. |
Represents the subset of |
-
class
Bumper
(repo_path, force=False)[source] Bases:
object
Class to bump the repository version.
- Parameters
Methods:
bump
(new_version, commit, message)Bump to the given version.
bump_version_for_file
(filename, config)Bumps the version for the given file.
get_bumpversion_config
(current_version, …)Returns the bumpversion config.
Returns the current version from the
repo_helper.yml
configuration file.major
(commit, message)Bump to the next major version.
minor
(commit, message)Bump to the next minor version.
patch
(commit, message)Bump to the next patch version.
today
(commit, message)Bump to the calver version for today’s date.
Attributes:
The path to the bumpversion configuration file.
-
bump
(new_version, commit, message)[source] Bump to the given version.
- Parameters
Changed in version 2021.8.11: Now takes a
packaging.version.Version
rather than adomdf_python_tools.versions.Version
.
-
bump_version_for_file
(filename, config)[source] Bumps the version for the given file.
- Parameters
config (
BumpversionFileConfig
)
-
bumpversion_file
The path to the bumpversion configuration file.
-
current_version
-
get_bumpversion_config
(current_version, new_version)[source] Returns the bumpversion config.
- Parameters
- Return type
-
get_current_version
()[source] Returns the current version from the
repo_helper.yml
configuration file.- Return type
-
repo