mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Change the way to manage version number.
This commit is contained in:
parent
29b4b785d0
commit
814c42c291
3 changed files with 3 additions and 8 deletions
|
@ -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
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)
|
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':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue