This allows easier testing of multiple versions of Python in a more automated fashion. This is needed if we're ever going to make some of the planned extensive refactorings. This change: * adds tox.ini * updates Makefile and .travis.yml to point to tox * fixes a doctest typo found while make sure the Makefile targets work * adds a [docs] extras_require so that the deps in tox are managed cleanly The pep8 target is currently commented out because it fails (and has done for a long time). Will fix asap. This commit is to ensure that travis is working. Followups will tune it up.
51 lines
1.4 KiB
Python
51 lines
1.4 KiB
Python
import wsgi_intercept
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
CLASSIFIERS = """
|
|
Environment :: Web Environment
|
|
Intended Audience :: Developers
|
|
License :: OSI Approved :: MIT License
|
|
Operating System :: OS Independent
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.7
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.3
|
|
Programming Language :: Python :: 3.4
|
|
Programming Language :: Python :: 3.5
|
|
Topic :: Internet :: WWW/HTTP :: WSGI
|
|
Topic :: Software Development :: Testing
|
|
""".strip().splitlines()
|
|
|
|
|
|
META = {
|
|
'name': 'wsgi_intercept',
|
|
'version': wsgi_intercept.__version__,
|
|
'author': 'Titus Brown, Kumar McMillan, Chris Dent, Sasha Hart',
|
|
'author_email': 'cdent@peermore.com',
|
|
'description': 'wsgi_intercept installs a WSGI application in place of a real URI for testing.',
|
|
# What will the name be?
|
|
'url': 'http://pypi.python.org/pypi/wsgi_intercept',
|
|
'long_description': wsgi_intercept.__doc__,
|
|
'license': 'MIT License',
|
|
'classifiers': CLASSIFIERS,
|
|
'packages': find_packages(),
|
|
'install_requires': [
|
|
'six',
|
|
],
|
|
'extras_require': {
|
|
'testing': [
|
|
'pytest>=2.4',
|
|
'httplib2',
|
|
'requests>=2.0.1',
|
|
'urllib3>=1.11.0',
|
|
],
|
|
'docs': [
|
|
'sphinx',
|
|
],
|
|
},
|
|
}
|
|
|
|
if __name__ == '__main__':
|
|
setup(**META)
|