mafw.devtools.release.checks
Release validation checks for MAFw.
This module contains non-git business logic checks used during the release process: tag parsing and missing-release detection.
Functions
|
Prevent creating a new release when a stable release is already missing a tag. |
|
Parse a stable tag in the form |
- mafw.devtools.release.checks.check_missing_release(current_version: str) None[source]
Prevent creating a new release when a stable release is already missing a tag.
- Parameters:
current_version (str) – Current project version.
- Raises:
DevtoolsError – If a missing stable release is detected.
- mafw.devtools.release.checks.parse_stable_tag(tag: str) tuple[int, int, int][source]
Parse a stable tag in the form
vX.Y.Z.- Parameters:
tag (str) – Stable tag value.
- Returns:
Parsed stable version tuple.
- Return type:
tuple[int, int, int]
- Raises:
DevtoolsError – If the tag does not match
vX.Y.Z.