setup.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright (C) Jean-Paul Calderone 2008-2015, All rights reserved
  5. #
  6. """
  7. Installation script for the OpenSSL module
  8. """
  9. from setuptools import setup
  10. # XXX Deduplicate this
  11. __version__ = '0.15.1'
  12. setup(name='pyOpenSSL', version=__version__,
  13. packages = ['OpenSSL'],
  14. package_dir = {'OpenSSL': 'OpenSSL'},
  15. py_modules = ['OpenSSL.__init__',
  16. 'OpenSSL.tsafe',
  17. 'OpenSSL.rand',
  18. 'OpenSSL.crypto',
  19. 'OpenSSL.SSL',
  20. 'OpenSSL.version',
  21. 'OpenSSL.test.__init__',
  22. 'OpenSSL.test.util',
  23. 'OpenSSL.test.test_crypto',
  24. 'OpenSSL.test.test_rand',
  25. 'OpenSSL.test.test_ssl',
  26. 'OpenSSL.test.test_tsafe',
  27. 'OpenSSL.test.test_util',],
  28. description = 'Python wrapper module around the OpenSSL library',
  29. author = 'Jean-Paul Calderone',
  30. author_email = 'exarkun@twistedmatrix.com',
  31. maintainer = 'Jean-Paul Calderone',
  32. maintainer_email = 'exarkun@twistedmatrix.com',
  33. url = 'https://github.com/pyca/pyopenssl',
  34. license = 'APL2',
  35. install_requires=["cryptography>=0.7", "six>=1.5.2"],
  36. long_description = """\
  37. High-level wrapper around a subset of the OpenSSL library, includes
  38. * SSL.Connection objects, wrapping the methods of Python's portable
  39. sockets
  40. * Callbacks written in Python
  41. * Extensive error-handling mechanism, mirroring OpenSSL's error codes
  42. ... and much more ;)""",
  43. classifiers = [
  44. 'Development Status :: 6 - Mature',
  45. 'Intended Audience :: Developers',
  46. 'License :: OSI Approved :: Apache Software License',
  47. 'Operating System :: MacOS :: MacOS X',
  48. 'Operating System :: Microsoft :: Windows',
  49. 'Operating System :: POSIX',
  50. # General classifiers to indicate "this project supports Python 2" and
  51. # "this project supports Python 3".
  52. 'Programming Language :: Python :: 2',
  53. # In particular, this makes pyOpenSSL show up on
  54. # https://pypi.python.org/pypi?:action=browse&c=533&show=all and is in
  55. # accordance with
  56. # http://docs.python.org/2/howto/pyporting.html#universal-bits-of-advice
  57. 'Programming Language :: Python :: 3',
  58. # More specific classifiers to indicate more precisely which versions
  59. # of those languages the project supports.
  60. 'Programming Language :: Python :: 2.6',
  61. 'Programming Language :: Python :: 2.7',
  62. 'Programming Language :: Python :: 3.2',
  63. 'Programming Language :: Python :: 3.3',
  64. 'Programming Language :: Python :: Implementation :: CPython',
  65. 'Programming Language :: Python :: Implementation :: PyPy',
  66. 'Topic :: Security :: Cryptography',
  67. 'Topic :: Software Development :: Libraries :: Python Modules',
  68. 'Topic :: System :: Networking',
  69. ],
  70. test_suite="OpenSSL")