setup.py 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright (C) 2011-2012 Yaco Sistemas <lgs@yaco.es>
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. import codecs
  15. import os
  16. import sys
  17. from setuptools import setup, find_packages
  18. def read(*rnames):
  19. return codecs.open(os.path.join(os.path.dirname(__file__), *rnames), encoding='utf-8').read()
  20. extra = {'test': []}
  21. if sys.version_info < (3, 4):
  22. # Necessary to use assertLogs in tests
  23. extra['test'].append('unittest2')
  24. setup(
  25. name='djangosaml2',
  26. version='0.16.11',
  27. description='pysaml2 integration for Django',
  28. long_description='\n\n'.join([read('README.rst'), read('CHANGES')]),
  29. classifiers=[
  30. "Development Status :: 4 - Beta",
  31. "Environment :: Web Environment",
  32. "Framework :: Django",
  33. "Framework :: Django :: 1.8",
  34. "Framework :: Django :: 1.9",
  35. "Framework :: Django :: 1.10",
  36. "Framework :: Django :: 1.11",
  37. "Intended Audience :: Developers",
  38. "License :: OSI Approved :: Apache Software License",
  39. "Operating System :: OS Independent",
  40. "Programming Language :: Python",
  41. "Programming Language :: Python :: 2",
  42. "Programming Language :: Python :: 2.7",
  43. "Programming Language :: Python :: 3",
  44. "Programming Language :: Python :: 3.3",
  45. "Programming Language :: Python :: 3.4",
  46. "Programming Language :: Python :: 3.5",
  47. "Programming Language :: Python :: 3.6",
  48. "Topic :: Internet :: WWW/HTTP",
  49. "Topic :: Internet :: WWW/HTTP :: WSGI",
  50. "Topic :: Security",
  51. "Topic :: Software Development :: Libraries :: Application Frameworks",
  52. ],
  53. keywords="django,pysaml2,sso,saml2,federated authentication,authentication",
  54. author="Yaco Sistemas and independent contributors",
  55. author_email="lgs@yaco.es",
  56. maintainer="Jozef Knaperek",
  57. url="https://github.com/knaperek/djangosaml2",
  58. download_url="https://pypi.python.org/pypi/djangosaml2",
  59. license='Apache 2.0',
  60. packages=find_packages(exclude=["tests", "tests.*"]),
  61. include_package_data=True,
  62. zip_safe=False,
  63. install_requires=[
  64. 'defusedxml>=0.4.1',
  65. 'Django>=1.8',
  66. 'enum34;python_version > "3" and python_version < "3.4"',
  67. 'pysaml2==4.4.0',
  68. ],
  69. extras_require=extra,
  70. )