summaryrefslogtreecommitdiffhomepage
path: root/setup.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-08-25 23:48:28 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-08-25 23:49:09 -0700
commit28b7db145fed32840f8d2edea8fdce27dc00ca26 (patch)
tree55dd7d5727be5a324395687b59542ad0e82261f5 /setup.py
parent9cf96d459a75d6ef4df167d8b7aa62dfa90ef774 (diff)
Consolidate version info. Closes #249
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 3d8268d1..13386c8e 100644
--- a/setup.py
+++ b/setup.py
@@ -54,9 +54,16 @@ if sys.platform == 'darwin':
setup_helper.install_custom_make_tarball()
+# Version info -- read without importing
+_locals = {}
+with open('paramiko/_version.py') as fp:
+ exec(fp.read(), None, _locals)
+version = _locals['__version__']
+
+
setup(
name = "paramiko",
- version = "1.14.1",
+ version = version,
description = "SSH2 protocol library",
long_description = longdesc,
author = "Jeff Forcier",