From 9782b612805bbc9f86b24b72c240b32ad72b4fa4 Mon Sep 17 00:00:00 2001 From: Randall Degges Date: Tue, 31 May 2011 17:21:46 -0700 Subject: [PATCH] Adding sane version import code to setup module. This will allow us to actually specify a legitimate version for PyPI. --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 14ea3fc..403fc0e 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,8 @@ from distutils.core import setup -try : - from asterisk.Version import VERSION -except : - VERSION = None +from asterisk import __version__ as version + description = [] f = open ('README') @@ -23,7 +21,7 @@ licenses = ( 'Python Software Foundation License' setup \ ( name = 'pyst2' - , version = VERSION + , version = version , description = 'A Python Interface to Asterisk' , long_description = ''.join (description) , author = 'Karl Putland'