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,34 +1,35 @@
#!/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(
# Basic package information:
name = 'pyst2', name = 'pyst2',
version = version, version = version,
description='A Python Interface to Asterisk',
long_description=''.join(description), author='Karl Putland',
author_email='kputland@users.sourceforge.net',
maintainer='Randall Degges',
maintainer_email='rdegges@gmail.com',
url='https://github.com/rdegges/pyst2',
packages = ['asterisk'], packages = ['asterisk'],
license=', '.join(licenses),
# Packaging options:
zip_safe = False,
include_package_data = True,
# Package dependencies:
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', platforms = 'Any',
classifiers = [ classifiers = [
'Development Status :: 5 - Production/Stable', 'Development Status :: 5 - Production/Stable',
@ -37,8 +38,6 @@ setup(
'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] ],
) )