File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from pkg_resources import get_distribution , DistributionNotFound
2-
3- try :
4- version = get_distribution ("msgpackrpc" ).version
5- except DistributionNotFound :
6- version = "trunk"
7-
8- __version__ = version
1+ from _version import __version__
92
103# shortcut for most-used symbols
114from msgpackrpc .loop import Loop
Original file line number Diff line number Diff line change 1+ __version__ = '0.2.3dev'
Original file line number Diff line number Diff line change 44import distutils .core
55import sys
66
7+ # Avoid importing msgpackrpc to make sdist without installing
8+ # requiring packages.
9+ exec (open ('msgpackrpc/_version.py' ).read ())
10+
711try :
812 from setuptools import setup
913except ImportError :
1014 setup = distutils .core .setup
11- pass
1215
1316kwargs = {}
1417major , minor = sys .version_info [:2 ]
1720 kwargs ["use_2to3" ] = True
1821
1922setup (name = 'msgpack-rpc-python' ,
20- version = '0.2.2' ,
23+ version = __version__ ,
2124 author = 'Masahiro Nakagawa' ,
2225 author_email = 'repeatedly@gmail.com' ,
2326 url = "https://github.com/msgpack/msgpack-rpc-python" ,
You can’t perform that action at this time.
0 commit comments