22
22
MAJOR = 6
23
23
MINOR = 0
24
24
MICRO = 0
25
- IS_RELEASED = False
25
+ PRERELEASE = "rc0"
26
+ IS_RELEASED = True
26
27
27
28
# If this file is part of a Git export (for example created with "git archive",
28
29
# or downloaded from GitHub), ARCHIVE_COMMIT_HASH gives the full hash of the
29
30
# commit that was exported.
30
31
ARCHIVE_COMMIT_HASH = "$Format:%H$"
31
32
32
33
# Templates for version strings.
33
- RELEASED_VERSION = "{major}.{minor}.{micro}"
34
- UNRELEASED_VERSION = "{major}.{minor}.{micro}.dev{dev}"
34
+ RELEASED_VERSION = "{major}.{minor}.{micro}{prerelease} "
35
+ UNRELEASED_VERSION = "{major}.{minor}.{micro}{prerelease} .dev{dev}"
35
36
36
37
# Paths to the autogenerated version file and the Git directory.
37
38
HERE = os .path .abspath (os .path .dirname (__file__ ))
@@ -171,7 +172,11 @@ def git_version():
171
172
git_count , git_revision = _git_info ()
172
173
version_template = RELEASED_VERSION if IS_RELEASED else UNRELEASED_VERSION
173
174
version = version_template .format (
174
- major = MAJOR , minor = MINOR , micro = MICRO , dev = git_count
175
+ major = MAJOR ,
176
+ minor = MINOR ,
177
+ micro = MICRO ,
178
+ prerelease = PRERELEASE ,
179
+ dev = git_count ,
175
180
)
176
181
return version , git_revision
177
182
@@ -197,7 +202,11 @@ def archive_version():
197
202
198
203
version_template = RELEASED_VERSION if IS_RELEASED else UNRELEASED_VERSION
199
204
version = version_template .format (
200
- major = MAJOR , minor = MINOR , micro = MICRO , dev = "-unknown"
205
+ major = MAJOR ,
206
+ minor = MINOR ,
207
+ micro = MICRO ,
208
+ prerelease = PRERELEASE ,
209
+ dev = "-unknown" ,
201
210
)
202
211
return version , ARCHIVE_COMMIT_HASH
203
212
0 commit comments