Porting setup.py -> setuptools.

Also: adding in six as a dependency to fix the broken build.  Fixes #11.
develop
Randall Degges 2015-03-31 11:04:24 -07:00
parent beb54cd6ab
commit 55cc2a09b3
1 changed files with 30 additions and 30 deletions

View File

@ -1,44 +1,43 @@
#!/usr/bin/env python """Packaging files and information."""
from distutils.core import setup
from setuptools import setup
from asterisk import __version__ as version from asterisk import __version__ as version
description = []
f = open('README.rst')
logo_stripped = False
for line in f:
if not logo_stripped and line.strip():
continue
logo_stripped = True
description.append(line)
licenses = ('Python Software Foundation License',
'GNU Library or Lesser General Public License (LGPL)')
setup( setup(
name='pyst2',
version=version, # Basic package information:
description='A Python Interface to Asterisk', name = 'pyst2',
long_description=''.join(description), author='Karl Putland', version = version,
author_email='kputland@users.sourceforge.net', packages = ['asterisk'],
maintainer='Randall Degges',
maintainer_email='rdegges@gmail.com', # Packaging options:
url='https://github.com/rdegges/pyst2', zip_safe = False,
packages=['asterisk'], include_package_data = True,
license=', '.join(licenses),
platforms='Any', # Package dependencies:
classifiers=[ install_requires = ['six>=1.9.0'],
# Metadata for PyPI:
author = 'Randall Degges',
author_email = 'r@rdegges.com',
license = 'Python Software Foundation License / GNU Library or Lesser General Public License (LGPL) / UNLICENSE',
url = 'https://github.com/rdegges/pyst2',
keywords = 'python asterisk agi ami telephony telephony sip voip',
description = 'A Python Interface to Asterisk',
long_description = open('README.rst').read(),
# Classifiers:
platforms = 'Any',
classifiers = [
'Development Status :: 5 - Production/Stable', 'Development Status :: 5 - Production/Stable',
'Environment :: Other Environment', 'Environment :: Other Environment',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'Intended Audience :: Telecommunications Industry', 'Intended Audience :: Telecommunications Industry',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
'Programming Language :: Python', 'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
@ -48,5 +47,6 @@ setup(
'Topic :: Communications :: Internet Phone', 'Topic :: Communications :: Internet Phone',
'Topic :: Communications :: Telephony', 'Topic :: Communications :: Telephony',
'Topic :: Software Development :: Libraries :: Python Modules' 'Topic :: Software Development :: Libraries :: Python Modules'
] + ['License :: OSI Approved :: ' + l for l in licenses] ],
) )