Change the way to manage version number.

This commit is contained in:
INADA Naoki 2012-08-19 04:17:56 +09:00
parent 29b4b785d0
commit 814c42c291
3 changed files with 3 additions and 8 deletions

View file

@ -1,5 +1,5 @@
# coding: utf-8 # coding: utf-8
from msgpack.__version__ import * from msgpack._version import version
from msgpack._msgpack import * from msgpack._msgpack import *
# alias for compatibility to simplejson/marshal/pickle. # alias for compatibility to simplejson/marshal/pickle.

1
msgpack/_version.py Normal file
View file

@ -0,0 +1 @@
version = (0, 2, 1, 'dev1')

View file

@ -53,13 +53,7 @@ class BuildExt(build_ext):
return build_ext.build_extension(self, ext) return build_ext.build_extension(self, ext)
# make msgpack/__verison__.py exec(open('msgpack/_version.py').read())
f = open('msgpack/__version__.py', 'w')
try:
f.write("version = %r\n" % (version,))
finally:
f.close()
del f
version_str = '.'.join(str(x) for x in version[:3]) version_str = '.'.join(str(x) for x in version[:3])
if len(version) > 3 and version[3] != 'final': if len(version) > 3 and version[3] != 'final':