segram.utils.versioning module
Versioning utilities.
- segram.utils.versioning.is_correct_version(v: str, constraints: str) bool[source]
Check if a version string is correct with respect to constraints.
- Parameters:
v – Semantic version string.
constraints –
Constraints for semantic versions in one of the following forms:
>version>=version<version<=version[constraint1],[constraint2]where the two constraints follow given consistent bounds using the forms above.
- Returns:
Indicate whether the constraints are met.
- Return type:
bool