Change the way to manage version number.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# coding: utf-8
|
||||
from msgpack.__version__ import *
|
||||
from msgpack._version import version
|
||||
from msgpack._msgpack import *
|
||||
|
||||
# alias for compatibility to simplejson/marshal/pickle.
|
||||
|
||||
1
msgpack/_version.py
Normal file
1
msgpack/_version.py
Normal file
@@ -0,0 +1 @@
|
||||
version = (0, 2, 1, 'dev1')
|
||||
8
setup.py
8
setup.py
@@ -53,13 +53,7 @@ class BuildExt(build_ext):
|
||||
return build_ext.build_extension(self, ext)
|
||||
|
||||
|
||||
# make msgpack/__verison__.py
|
||||
f = open('msgpack/__version__.py', 'w')
|
||||
try:
|
||||
f.write("version = %r\n" % (version,))
|
||||
finally:
|
||||
f.close()
|
||||
del f
|
||||
exec(open('msgpack/_version.py').read())
|
||||
|
||||
version_str = '.'.join(str(x) for x in version[:3])
|
||||
if len(version) > 3 and version[3] != 'final':
|
||||
|
||||
Reference in New Issue
Block a user