Skip to content

Commit

Permalink
Prepare for v3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed May 1, 2023
1 parent b233ebe commit dcf89c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions coconut/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
VERSION = "3.0.0"
VERSION_NAME = None
# False for release, int >= 1 for develop
DEVELOP = 40
ALPHA = True # for pre releases rather than post releases
DEVELOP = False
ALPHA = False # for pre releases rather than post releases

assert DEVELOP is False or DEVELOP >= 1, "DEVELOP must be False or an int >= 1"
assert DEVELOP or not ALPHA, "alpha releases are only for develop"

# -----------------------------------------------------------------------------------------------------------------------
# UTILITIES:
Expand Down Expand Up @@ -326,9 +329,6 @@ def _get_root_header(version="universal"):
# CONSTANTS:
# -----------------------------------------------------------------------------------------------------------------------

assert isinstance(DEVELOP, int) or DEVELOP is False, "DEVELOP must be an int or False"
assert DEVELOP or not ALPHA, "alpha releases are only for develop"

if DEVELOP:
VERSION += "-" + ("a" if ALPHA else "post") + "_dev" + str(int(DEVELOP))
VERSION_STR = VERSION + (" [" + VERSION_NAME + "]" if VERSION_NAME else "")
Expand Down

0 comments on commit dcf89c0

Please sign in to comment.