| | |
| | | from setuptools import setup, find_packages |
| | | |
| | | here = os.path.abspath(os.path.dirname(__file__)) |
| | | README = open(os.path.join(here, 'README.txt')).read() |
| | | CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() |
| | | def _read_file(filename): |
| | | try: |
| | | with open(os.path.join(here, filename)) as f: |
| | | return f.read() |
| | | except IOError: # Travis??? |
| | | return '' |
| | | |
| | | README = _read_file('README.rst') |
| | | CHANGES = _read_file('CHANGES.rst') |
| | | tests_require = ['WebOb', 'zope.interface'] |
| | | testing_extras = tests_require + ['nose', 'coverage'] |
| | | docs_extras = tests_require + ['Sphinx', 'repoze.sphinx.autointerface'] |
| | | |
| | | setup(name='repoze.who', |
| | | version='2.0', |
| | | version='2.3.1.dev0', |
| | | description=('repoze.who is an identification and authentication ' |
| | | 'framework for WSGI.'), |
| | | long_description='\n\n'.join([README, CHANGES]), |
| | | classifiers=[ |
| | | "Development Status :: 5 - Production/Stable", |
| | | "Intended Audience :: Developers", |
| | | "Programming Language :: Python", |
| | | "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", |
| | | "Programming Language :: Python :: Implementation :: CPython", |
| | | "Programming Language :: Python :: Implementation :: PyPy", |
| | | "Topic :: Internet :: WWW/HTTP", |
| | | "Topic :: Internet :: WWW/HTTP :: Dynamic Content", |
| | | "Topic :: Internet :: WWW/HTTP :: WSGI", |
| | |
| | | include_package_data=True, |
| | | namespace_packages=['repoze', 'repoze.who', 'repoze.who.plugins'], |
| | | zip_safe=False, |
| | | tests_require = ['Paste', 'zope.interface'], |
| | | install_requires=['Paste', 'zope.interface', 'setuptools'], |
| | | tests_require = tests_require, |
| | | install_requires=['WebOb', 'zope.interface', 'setuptools'], |
| | | test_suite="repoze.who", |
| | | entry_points = """\ |
| | | [paste.filter_app_factory] |
| | |
| | | config = repoze.who.config:make_middleware_with_config |
| | | predicate = repoze.who.restrict:make_predicate_restriction |
| | | authenticated = repoze.who.restrict:make_authenticated_restriction |
| | | """ |
| | | """, |
| | | extras_require = { |
| | | 'testing': testing_extras, |
| | | 'docs': docs_extras, |
| | | }, |
| | | ) |
| | | |