Adding sane version import code to setup module.
This will allow us to actually specify a legitimate version for PyPI.develop
parent
60b904bf10
commit
9782b61280
8
setup.py
8
setup.py
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
try :
|
from asterisk import __version__ as version
|
||||||
from asterisk.Version import VERSION
|
|
||||||
except :
|
|
||||||
VERSION = None
|
|
||||||
|
|
||||||
description = []
|
description = []
|
||||||
f = open ('README')
|
f = open ('README')
|
||||||
|
@ -23,7 +21,7 @@ licenses = ( 'Python Software Foundation License'
|
||||||
|
|
||||||
setup \
|
setup \
|
||||||
( name = 'pyst2'
|
( name = 'pyst2'
|
||||||
, version = VERSION
|
, version = version
|
||||||
, description = 'A Python Interface to Asterisk'
|
, description = 'A Python Interface to Asterisk'
|
||||||
, long_description = ''.join (description)
|
, long_description = ''.join (description)
|
||||||
, author = 'Karl Putland'
|
, author = 'Karl Putland'
|
||||||
|
|
Loading…
Reference in New Issue