diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index 1d31443..5c755b7 --- a/setup.py +++ b/setup.py @@ -1,33 +1,30 @@ #!/usr/bin/python -import re +import callcontrol from distutils.core import setup -def get_version(): - return re.search(r"""__version__\s+=\s+(?P['"])(?P.+?)(?P=quote)""", open('callcontrol/__init__.py').read()).group('version') +setup( + name='callcontrol', + version=callcontrol.__version__, -setup(name = "callcontrol", - version = get_version(), - author = "AG Projects", - author_email = "support@ag-projects.com", - url = "http://callcontrol.ag-projects.com", - description = "SIP call control", - license = "GPL", - platforms = ["Platform Independent"], - classifiers = [ - #"Development Status :: 1 - Planning", - #"Development Status :: 2 - Pre-Alpha", - #"Development Status :: 3 - Alpha", - #"Development Status :: 4 - Beta", - "Development Status :: 5 - Production/Stable", - #"Development Status :: 6 - Mature", - #"Development Status :: 7 - Inactive", - "Intended Audience :: Service Providers", - "License :: GNU General Public License (GPL)", - "Operating System :: OS Independent", - "Programming Language :: Python" - ], - packages = ['callcontrol','callcontrol.rating','callcontrol.rating.backends'], - scripts = ['call-control'] + description='SIP call control engine', + long_description='Call control engine for OpenSIPS', + url='http://callcontrol.ag-projects.com', + + license='GPLv2', + author='AG Projects', + author_email='support@ag-projects.com', + + platforms=['Platform Independent'], + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Service Providers', + 'License :: GNU General Public License 2 (GPLv2)', + 'Operating System :: OS Independent', + 'Programming Language :: Python' + ], + + packages=['callcontrol', 'callcontrol.rating', 'callcontrol.rating.backends'], + scripts=['call-control'] )