setup.py 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ##############################################################################
  2. #
  3. # Copyright (c) 2007-2009 Agendaless Consulting and Contributors.
  4. # All Rights Reserved.
  5. #
  6. # This software is subject to the provisions of the BSD-like license at
  7. # http://www.repoze.org/LICENSE.txt. A copy of the license should accompany
  8. # this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
  9. # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
  10. # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
  11. # FITNESS FOR A PARTICULAR PURPOSE
  12. #
  13. ##############################################################################
  14. import os
  15. from setuptools import setup, find_packages
  16. here = os.path.abspath(os.path.dirname(__file__))
  17. def _read_file(filename):
  18. try:
  19. with open(os.path.join(here, filename)) as f:
  20. return f.read()
  21. except IOError: # Travis???
  22. return ''
  23. README = _read_file('README.rst')
  24. CHANGES = _read_file('CHANGES.rst')
  25. tests_require = ['WebOb', 'zope.interface']
  26. testing_extras = tests_require + ['nose', 'coverage']
  27. docs_extras = tests_require + ['Sphinx', 'repoze.sphinx.autointerface']
  28. setup(name='repoze.who',
  29. version='2.3',
  30. description=('repoze.who is an identification and authentication '
  31. 'framework for WSGI.'),
  32. long_description='\n\n'.join([README, CHANGES]),
  33. classifiers=[
  34. "Development Status :: 5 - Production/Stable",
  35. "Intended Audience :: Developers",
  36. "Programming Language :: Python :: 2",
  37. "Programming Language :: Python :: 2.7",
  38. "Programming Language :: Python :: 3",
  39. "Programming Language :: Python :: 3.3",
  40. "Programming Language :: Python :: 3.4",
  41. "Programming Language :: Python :: 3.5",
  42. "Programming Language :: Python :: Implementation :: CPython",
  43. "Programming Language :: Python :: Implementation :: PyPy",
  44. "Topic :: Internet :: WWW/HTTP",
  45. "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
  46. "Topic :: Internet :: WWW/HTTP :: WSGI",
  47. "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  48. ],
  49. keywords='web application server wsgi zope',
  50. author="Agendaless Consulting",
  51. author_email="repoze-dev@lists.repoze.org",
  52. url="http://www.repoze.org",
  53. license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
  54. packages=find_packages(),
  55. include_package_data=True,
  56. namespace_packages=['repoze', 'repoze.who', 'repoze.who.plugins'],
  57. zip_safe=False,
  58. tests_require = tests_require,
  59. install_requires=['WebOb', 'zope.interface', 'setuptools'],
  60. test_suite="repoze.who",
  61. entry_points = """\
  62. [paste.filter_app_factory]
  63. test = repoze.who.middleware:make_test_middleware
  64. config = repoze.who.config:make_middleware_with_config
  65. predicate = repoze.who.restrict:make_predicate_restriction
  66. authenticated = repoze.who.restrict:make_authenticated_restriction
  67. """,
  68. extras_require = {
  69. 'testing': testing_extras,
  70. 'docs': docs_extras,
  71. },
  72. )