setup.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/env python
  2. import re
  3. import sys
  4. from setuptools import setup
  5. from setuptools.command.test import test as TestCommand
  6. install_requires = [
  7. # core dependencies
  8. 'decorator',
  9. 'requests >= 1.0.0',
  10. 'future',
  11. 'paste',
  12. 'zope.interface',
  13. 'repoze.who',
  14. 'pycryptodomex',
  15. 'pytz',
  16. 'pyOpenSSL',
  17. 'python-dateutil',
  18. 'six'
  19. ]
  20. version = ''
  21. with open('src/saml2/__init__.py', 'r') as fd:
  22. version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
  23. fd.read(), re.MULTILINE).group(1)
  24. setup(
  25. name='pysaml2',
  26. version=version,
  27. description='Python implementation of SAML Version 2',
  28. # long_description = read("README"),
  29. author='Roland Hedberg',
  30. author_email='roland.hedberg@adm.umu.se',
  31. license='Apache 2.0',
  32. url='https://github.com/rohe/pysaml2',
  33. packages=['saml2', 'saml2/xmldsig', 'saml2/xmlenc', 'saml2/s2repoze',
  34. 'saml2/s2repoze.plugins', "saml2/profile", "saml2/schema",
  35. "saml2/extension", "saml2/attributemaps", "saml2/authn_context",
  36. "saml2/entity_category", "saml2/userinfo", "saml2/ws"],
  37. package_dir={'': 'src'},
  38. package_data={'': ['xml/*.xml']},
  39. classifiers=[
  40. "Development Status :: 4 - Beta",
  41. "License :: OSI Approved :: Apache Software License",
  42. "Topic :: Software Development :: Libraries :: Python Modules",
  43. "Programming Language :: Python :: 2.7",
  44. "Programming Language :: Python :: 3.4",
  45. "Programming Language :: Python :: 3.5"
  46. ],
  47. scripts=["tools/parse_xsd2.py", "tools/make_metadata.py",
  48. "tools/mdexport.py", "tools/merge_metadata.py"],
  49. install_requires=install_requires,
  50. zip_safe=False,
  51. )