setup.py 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/usr/bin/env python
  2. # django-openid-auth - OpenID integration for django.contrib.auth
  3. #
  4. # Copyright (C) 2009-2015 Canonical Ltd.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions
  8. # are met:
  9. #
  10. # * Redistributions of source code must retain the above copyright
  11. # notice, this list of conditions and the following disclaimer.
  12. #
  13. # * Redistributions in binary form must reproduce the above copyright
  14. # notice, this list of conditions and the following disclaimer in the
  15. # documentation and/or other materials provided with the distribution.
  16. #
  17. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  18. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  20. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  21. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  22. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  23. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  24. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  25. # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  26. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  27. # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  28. # POSSIBILITY OF SUCH DAMAGE.
  29. """OpenID integration for django.contrib.auth
  30. A library that can be used to add OpenID support to Django applications.
  31. The library integrates with Django's built in authentication system, so
  32. most applications require minimal changes to support OpenID llogin. The
  33. library also includes the following features:
  34. * Basic user details are transferred from the OpenID server via the
  35. Simple Registration extension or Attribute Exchange extension.
  36. * can be configured to use a fixed OpenID server URL, for use in SSO.
  37. * supports the launchpad.net teams extension to get team membership
  38. info.
  39. """
  40. import sys
  41. from setuptools import find_packages, setup
  42. PY3 = sys.version_info.major >= 3
  43. description, long_description = __doc__.split('\n\n', 1)
  44. VERSION = '0.14'
  45. install_requires = ['django>=1.6', 'six']
  46. if PY3:
  47. install_requires.append('python3-openid')
  48. else:
  49. install_requires.append('python-openid>=2.2.0')
  50. setup(
  51. name='django-openid-auth',
  52. version=VERSION,
  53. packages=find_packages(),
  54. install_requires=install_requires,
  55. package_data={
  56. 'django_openid_auth': ['templates/openid/*.html'],
  57. },
  58. # metadata for upload to PyPI
  59. author='Canonical Ltd',
  60. author_email='noreply@canonical.com',
  61. description=description,
  62. long_description=long_description,
  63. license='BSD',
  64. platforms=['any'],
  65. url='https://launchpad.net/django-openid-auth',
  66. download_url=('http://launchpad.net/django-openid-auth/trunk/%s/+download'
  67. '/django-openid-auth-%s.tar.gz' % (VERSION, VERSION)),
  68. classifiers=[
  69. 'Development Status :: 5 - Production/Stable',
  70. 'Environment :: Web Environment',
  71. 'Framework :: Django',
  72. 'Intended Audience :: Developers',
  73. 'License :: OSI Approved :: BSD License',
  74. 'Operating System :: OS Independent',
  75. 'Programming Language :: Python',
  76. 'Topic :: Software Development :: Libraries :: Python Modules'
  77. ],
  78. )