2010-06-17 20:16:28 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from distutils.core import setup
|
|
|
|
|
2010-06-18 14:02:14 +04:00
|
|
|
try :
|
|
|
|
from asterisk.Version import VERSION
|
|
|
|
except :
|
|
|
|
VERSION = None
|
|
|
|
|
|
|
|
description = []
|
|
|
|
f = open ('README')
|
|
|
|
logo_stripped = False
|
|
|
|
for line in f :
|
|
|
|
if not logo_stripped and line.strip () :
|
|
|
|
continue
|
|
|
|
logo_stripped = True
|
|
|
|
description.append (line)
|
|
|
|
|
2010-06-23 12:30:44 +04:00
|
|
|
licenses = ( 'Python Software Foundation License'
|
2010-06-18 14:02:14 +04:00
|
|
|
, 'GNU Library or Lesser General Public License (LGPL)'
|
|
|
|
)
|
|
|
|
|
2010-06-23 12:30:44 +04:00
|
|
|
|
2010-06-18 14:02:14 +04:00
|
|
|
setup \
|
|
|
|
( name = 'pyst'
|
|
|
|
, version = VERSION
|
|
|
|
, description = 'A Python Interface to Asterisk'
|
|
|
|
, long_description = ''.join (description)
|
|
|
|
, author = 'Karl Putland'
|
|
|
|
, author_email = 'kputland@users.sourceforge.net'
|
2010-06-18 14:15:08 +04:00
|
|
|
, maintainer = 'Ralf Schlatterbeck'
|
|
|
|
, maintainer_email = 'rsc@runtux.com'
|
2010-06-18 14:02:14 +04:00
|
|
|
, url = 'http://www.sourceforge.net/projects/pyst/'
|
|
|
|
, packages = ['asterisk']
|
|
|
|
, license = ', '.join (licenses)
|
2010-06-23 12:30:44 +04:00
|
|
|
, platforms = 'Any'
|
|
|
|
, classifiers =
|
|
|
|
[ 'Development Status :: 5 - Production/Stable'
|
|
|
|
, 'Environment :: Other Environment'
|
|
|
|
, 'Intended Audience :: Developers'
|
|
|
|
, 'Intended Audience :: Telecommunications Industry'
|
|
|
|
, 'Operating System :: OS Independent'
|
|
|
|
, 'Programming Language :: Python'
|
|
|
|
, 'Programming Language :: Python :: 2.4'
|
|
|
|
, 'Programming Language :: Python :: 2.5'
|
|
|
|
, 'Programming Language :: Python :: 2.6'
|
|
|
|
, 'Programming Language :: Python :: 2.7'
|
|
|
|
, 'Topic :: Communications :: Internet Phone'
|
|
|
|
, 'Topic :: Communications :: Telephony'
|
|
|
|
, 'Topic :: Software Development :: Libraries :: Python Modules'
|
|
|
|
] + ['License :: OSI Approved :: ' + l for l in licenses]
|
2010-06-18 14:02:14 +04:00
|
|
|
)
|