Mercurial > hg > AuthRPC
view setup.py @ 5:f5e3ba8cfcd0
Improved test framework
author | Ben Croston <ben@croston.org> |
---|---|
date | Wed, 31 Aug 2011 22:45:55 +0100 |
parents | ad5a8748afcf |
children | 685479d1f0a7 |
line wrap: on
line source
#!/usr/bin/env python import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages import platform classifiers = ['Development Status :: 3 - Alpha', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Software Development', 'Topic :: Internet :: WWW/HTTP :: WSGI'] install_requires = [] exclude = [] extra = {} if platform.python_version().startswith('2'): # we can build server with python 2 install_requires.append('webob>=1.0.0') extra['test_suite'] = 'wibble.tests.suite' if platform.python_version().startswith('3'): # we can't build server with python 3 exclude.append('wibble.server') extra['use_2to3'] = True setup(name = 'Wibble', version = '0.0.1a', packages = find_packages(exclude=exclude), install_requires = install_requires, author = 'Ben Croston', author_email = 'ben@croston.org', description = 'Stick two pencils up your nose, underpants on your head then run this module.', long_description = open('README.txt').read(), license = 'MIT', keywords = 'jsonrpc', url = 'http://www.wyre-it.co.uk/wibble/', classifiers = classifiers, platforms = ['Any'], **extra)