Fix VERSION
This commit is contained in:
parent
d645ce9745
commit
6e7f2b73cf
@ -18,6 +18,6 @@ VERSION = (0, 6, 20)
|
|||||||
def get_version():
|
def get_version():
|
||||||
if isinstance(VERSION[-1], basestring):
|
if isinstance(VERSION[-1], basestring):
|
||||||
return '.'.join(map(str, VERSION[:-1])) + VERSION[-1]
|
return '.'.join(map(str, VERSION[:-1])) + VERSION[-1]
|
||||||
return '.'.join(map(str, VERSIONs))
|
return '.'.join(map(str, VERSION))
|
||||||
|
|
||||||
__version__ = get_version()
|
__version__ = get_version()
|
||||||
|
2
setup.py
2
setup.py
@ -18,7 +18,7 @@ except:
|
|||||||
|
|
||||||
|
|
||||||
def get_version(version_tuple):
|
def get_version(version_tuple):
|
||||||
if isinstance(version_tuple[-1], basestring):
|
if not isinstance(version_tuple[-1], int):
|
||||||
return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1]
|
return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1]
|
||||||
return '.'.join(map(str, version_tuple))
|
return '.'.join(map(str, version_tuple))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user