Skip to content

Commit

Permalink
adds rc and dev pre-releases and some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Dec 2, 2024
1 parent 39e0fcf commit 08aa760
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion version_scheme.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Parses and validates the version scheme chosen for mamba versions.
# Specifically, we use a dot to separate pre-release names and use complete names for `alpha` and `beta`.
#
# See:
# - discussion in https://github.com/mamba-org/mamba/issues/3638
# - https://conda-forge.org/docs/maintainer/knowledge_base/#pre-release-version-sorting
# - https://github.com/conda/conda/blob/cc21508563912268649f207723fd5114fa21b906/conda/models/version.py#L115-L143
class version_info:
major = ""
minor = ""
Expand All @@ -13,7 +20,7 @@ def __init__(self, version: str):
)
)

VALID_VERSION_PRERELEASE_TYPES = ("alpha", "beta")
VALID_VERSION_PRERELEASE_TYPES = ("alpha", "beta", "rc", "dev")
version_fields = version.split(".")
version_fields_count = len(version_fields)
if version_fields_count < 3:
Expand Down

0 comments on commit 08aa760

Please sign in to comment.