File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 99 * `development version <https://github.com/cemerick/nrepl-python-client>`_
1010'''
1111
12+ import os
13+
1214from setuptools import setup , find_packages
1315
16+ # HACK: Pull the version number without requiring the package to be installed
17+ # beforehand, i.e. without using import.
18+ module_path = os .path .join (os .path .dirname (__file__ ), 'nrepl/__init__.py' )
19+ version_line = [line for line in open (module_path )
20+ if line .startswith ('__version_info__' )][0 ]
21+
22+ __version__ = '.' .join (eval (version_line .split ('__version_info__ = ' )[- 1 ]))
23+
1424description = "A Python client for the nREPL Clojure networked-REPL server."
1525classifiers = ['Development Status :: 4 - Beta' ,
1626 'Environment :: Console' ,
2434 'Topic :: Utilities' ]
2535
2636setup (name = "nrepl-python-client" ,
27- version = "0.0.3" ,
37+ version = __version__ ,
2838 packages = find_packages (),
2939 # metadata for upload to PyPI
3040 author = "Chas Emerick" ,
You can’t perform that action at this time.
0 commit comments