setup.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #!/usr/bin/env python
  2. import sys
  3. from setuptools import setup
  4. from setuptools.command.test import test as TestCommand
  5. class PyTest(TestCommand):
  6. def finalize_options(self):
  7. TestCommand.finalize_options(self)
  8. self.test_args = []
  9. self.test_suite = True
  10. def run_tests(self):
  11. #import here, cause outside the eggs aren't loaded
  12. import pytest
  13. errno = pytest.main(self.test_args)
  14. sys.exit(errno)
  15. install_requires = [
  16. # core dependencies
  17. 'decorator',
  18. 'requests >= 1.0.0',
  19. 'paste',
  20. 'zope.interface',
  21. 'repoze.who',
  22. 'pycrypto >= 2.2', # 'Crypto'
  23. 'pytz',
  24. 'pyOpenSSL',
  25. 'python-dateutil',
  26. 'argparse'
  27. ]
  28. tests_require = [
  29. 'mongodict',
  30. 'pyasn1',
  31. 'pymongo',
  32. 'python-memcached == 1.51',
  33. 'pytest',
  34. 'mako',
  35. #'pytest-coverage',
  36. ]
  37. # only for Python 2.6
  38. if sys.version_info < (2, 7):
  39. install_requires.append('importlib')
  40. setup(
  41. name='pysaml2',
  42. version='2.4.0',
  43. description='Python implementation of SAML Version 2',
  44. # long_description = read("README"),
  45. author='Roland Hedberg',
  46. author_email='roland.hedberg@adm.umu.se',
  47. license='Apache 2.0',
  48. url='https://github.com/rohe/pysaml2',
  49. packages=['saml2', 'xmldsig', 'xmlenc', 's2repoze', 's2repoze.plugins',
  50. "saml2/profile", "saml2/schema", "saml2/extension",
  51. "saml2/attributemaps", "saml2/authn_context",
  52. "saml2/entity_category", "saml2/userinfo"],
  53. package_dir={'': 'src'},
  54. package_data={'': ['xml/*.xml']},
  55. classifiers=["Development Status :: 4 - Beta",
  56. "License :: OSI Approved :: Apache Software License",
  57. "Topic :: Software Development :: Libraries :: Python Modules",
  58. "Programming Language :: Python :: 2.6",
  59. "Programming Language :: Python :: 2.7"],
  60. scripts=["tools/parse_xsd2.py", "tools/make_metadata.py",
  61. "tools/mdexport.py", "tools/merge_metadata.py"],
  62. tests_require=tests_require,
  63. extras_require={
  64. 'testing': tests_require,
  65. },
  66. install_requires=install_requires,
  67. zip_safe=False,
  68. test_suite='tests',
  69. cmdclass={'test': PyTest},
  70. )