setup.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu>
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # https://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. from setuptools import setup
  17. with open('README.md') as f:
  18. long_description = f.read()
  19. if __name__ == '__main__':
  20. setup(name='rsa',
  21. version='4.0',
  22. description='Pure-Python RSA implementation',
  23. long_description=long_description,
  24. long_description_content_type='text/markdown',
  25. author='Sybren A. Stuvel',
  26. author_email='sybren@stuvel.eu',
  27. maintainer='Sybren A. Stuvel',
  28. maintainer_email='sybren@stuvel.eu',
  29. url='https://stuvel.eu/rsa',
  30. packages=['rsa'],
  31. license='ASL 2',
  32. classifiers=[
  33. 'Development Status :: 5 - Production/Stable',
  34. 'Intended Audience :: Developers',
  35. 'Intended Audience :: Education',
  36. 'Intended Audience :: Information Technology',
  37. 'License :: OSI Approved :: Apache Software License',
  38. 'Operating System :: OS Independent',
  39. 'Programming Language :: Python',
  40. 'Programming Language :: Python :: 2',
  41. 'Programming Language :: Python :: 2.7',
  42. 'Programming Language :: Python :: 3',
  43. 'Programming Language :: Python :: 3.4',
  44. 'Programming Language :: Python :: 3.5',
  45. 'Programming Language :: Python :: 3.6',
  46. 'Programming Language :: Python :: 3.7',
  47. 'Programming Language :: Python :: Implementation :: CPython',
  48. 'Programming Language :: Python :: Implementation :: PyPy',
  49. 'Topic :: Security :: Cryptography',
  50. ],
  51. install_requires=[
  52. 'pyasn1 >= 0.1.3',
  53. ],
  54. entry_points={'console_scripts': [
  55. 'pyrsa-priv2pub = rsa.util:private_to_public',
  56. 'pyrsa-keygen = rsa.cli:keygen',
  57. 'pyrsa-encrypt = rsa.cli:encrypt',
  58. 'pyrsa-decrypt = rsa.cli:decrypt',
  59. 'pyrsa-sign = rsa.cli:sign',
  60. 'pyrsa-verify = rsa.cli:verify',
  61. ]},
  62. )