helpers¶
Helper functions.
Note
This module is “ZERO-DEPENDENCY”.
- pywf_open_source.helpers.bump_version(current_version: str, major: bool = False, minor: bool = False, patch: bool = False, minor_start_from: int = 0, micro_start_from: int = 0)[source]¶
Bump a semantic version. The current version has to be in x.y.z format, where x, y, z are integers.
- Parameters:
current_version – current version string.
major – bump major version.
minor – bump minor version.
patch – bump patch version.
minor_start_from – if bumping major version, minor start from this number.
micro_start_from – if bumping minor version, micro start from this number.