File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626VERSION = "3.0.0"
2727VERSION_NAME = None
2828# False for release, int >= 1 for develop
29- DEVELOP = 40
30- ALPHA = True # for pre releases rather than post releases
29+ DEVELOP = False
30+ ALPHA = False # for pre releases rather than post releases
31+
32+ assert DEVELOP is False or DEVELOP >= 1 , "DEVELOP must be False or an int >= 1"
33+ assert DEVELOP or not ALPHA , "alpha releases are only for develop"
3134
3235# -----------------------------------------------------------------------------------------------------------------------
3336# UTILITIES:
@@ -326,9 +329,6 @@ def _get_root_header(version="universal"):
326329# CONSTANTS:
327330# -----------------------------------------------------------------------------------------------------------------------
328331
329- assert isinstance (DEVELOP , int ) or DEVELOP is False , "DEVELOP must be an int or False"
330- assert DEVELOP or not ALPHA , "alpha releases are only for develop"
331-
332332if DEVELOP :
333333 VERSION += "-" + ("a" if ALPHA else "post" ) + "_dev" + str (int (DEVELOP ))
334334VERSION_STR = VERSION + (" [" + VERSION_NAME + "]" if VERSION_NAME else "" )
You can’t perform that action at this time.
0 commit comments