special case release candidates
This commit is contained in:
parent
248886a0cd
commit
fb23463139
|
@ -27,8 +27,10 @@ def _sphinx_version():
|
||||||
major, minor, micro, level, serial = sys.version_info
|
major, minor, micro, level, serial = sys.version_info
|
||||||
release = '%s%s' % (major, minor)
|
release = '%s%s' % (major, minor)
|
||||||
if micro:
|
if micro:
|
||||||
release += '%s' % micro
|
release += '%s' % (micro,)
|
||||||
if level != 'final':
|
if level == 'candidate':
|
||||||
|
release += 'rc%s' % (serial,)
|
||||||
|
elif level != 'final':
|
||||||
release += '%s%s' % (level[0], serial)
|
release += '%s%s' % (level[0], serial)
|
||||||
return release
|
return release
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue