1import os 2 3from setuptools import setup, find_packages 4 5here = os.path.abspath(os.path.dirname(__file__)) 6try: 7 with open(os.path.join(here, 'README.rst')) as f: 8 README = f.read() 9 with open(os.path.join(here, 'CHANGES.txt')) as f: 10 CHANGES = f.read() 11except IOError: 12 README = CHANGES = '' 13 14testing_extras = [ 15 'pytest >= 3.1.0', # >= 3.1.0 so we can use pytest.param 16 'coverage', 17 'pytest-cov', 18 'pytest-xdist', 19 ] 20 21docs_extras = [ 22 'Sphinx >= 1.7.5', 23 'pylons-sphinx-themes', 24 ] 25 26setup( 27 name='WebOb', 28 version='1.8.7', 29 description="WSGI request and response object", 30 long_description=README + '\n\n' + CHANGES, 31 classifiers=[ 32 "Development Status :: 6 - Mature", 33 "Intended Audience :: Developers", 34 "License :: OSI Approved :: MIT License", 35 "Topic :: Internet :: WWW/HTTP :: WSGI", 36 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", 37 "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware", 38 "Programming Language :: Python :: 2.7", 39 "Programming Language :: Python :: 3.4", 40 "Programming Language :: Python :: 3.5", 41 "Programming Language :: Python :: 3.6", 42 "Programming Language :: Python :: 3.7", 43 "Programming Language :: Python :: Implementation :: CPython", 44 "Programming Language :: Python :: Implementation :: PyPy", 45 ], 46 keywords='wsgi request web http', 47 author='Ian Bicking', 48 author_email='ianb@colorstudy.com', 49 maintainer='Pylons Project', 50 url='http://webob.org/', 51 license='MIT', 52 packages=find_packages('src', exclude=['tests']), 53 package_dir={'': 'src'}, 54 python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*', 55 zip_safe=True, 56 extras_require={ 57 'testing': testing_extras, 58 'docs': docs_extras, 59 }, 60) 61