Sybren A. Stüvel | d15a7f3 | 2020-06-11 18:53:41 +0200 | [diff] [blame] | 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 | |
| 17 | # io.open is needed for projects that support Python 2.7. It ensures open() |
| 18 | # defaults to text mode with universal newlines, and accepts an argument to |
| 19 | # specify the text encoding Python 3 only projects can skip this import. |
| 20 | from io import open |
| 21 | from setuptools import setup |
| 22 | |
| 23 | with open('README.md', encoding='utf-8') as f: |
| 24 | long_description = f.read() |
| 25 | |
| 26 | if __name__ == '__main__': |
| 27 | setup(name='rsa', |
Sybren A. Stüvel | cedefea | 2020-06-12 22:24:49 +0200 | [diff] [blame^] | 28 | version='4.6', |
Sybren A. Stüvel | d15a7f3 | 2020-06-11 18:53:41 +0200 | [diff] [blame] | 29 | description='Pure-Python RSA implementation', |
| 30 | long_description=long_description, |
| 31 | long_description_content_type='text/markdown', |
| 32 | author='Sybren A. Stuvel', |
| 33 | author_email='sybren@stuvel.eu', |
| 34 | maintainer='Sybren A. Stuvel', |
| 35 | maintainer_email='sybren@stuvel.eu', |
| 36 | url='https://stuvel.eu/rsa', |
| 37 | packages=['rsa'], |
| 38 | license='ASL 2', |
| 39 | classifiers=[ |
| 40 | 'Development Status :: 5 - Production/Stable', |
| 41 | 'Intended Audience :: Developers', |
| 42 | 'Intended Audience :: Education', |
| 43 | 'Intended Audience :: Information Technology', |
| 44 | 'License :: OSI Approved :: Apache Software License', |
| 45 | 'Operating System :: OS Independent', |
| 46 | 'Programming Language :: Python', |
| 47 | 'Programming Language :: Python :: 3', |
| 48 | 'Programming Language :: Python :: 3.5', |
| 49 | 'Programming Language :: Python :: 3.6', |
| 50 | 'Programming Language :: Python :: 3.7', |
Sybren A. Stüvel | e7c0b2a | 2020-06-12 19:52:51 +0200 | [diff] [blame] | 51 | 'Programming Language :: Python :: 3.8', |
Sybren A. Stüvel | d15a7f3 | 2020-06-11 18:53:41 +0200 | [diff] [blame] | 52 | 'Programming Language :: Python :: Implementation :: CPython', |
| 53 | 'Programming Language :: Python :: Implementation :: PyPy', |
| 54 | 'Topic :: Security :: Cryptography', |
| 55 | ], |
Sybren A. Stüvel | e7c0b2a | 2020-06-12 19:52:51 +0200 | [diff] [blame] | 56 | python_requires='>=3.5, <4', |
Sybren A. Stüvel | d15a7f3 | 2020-06-11 18:53:41 +0200 | [diff] [blame] | 57 | install_requires=[ |
| 58 | 'pyasn1 >= 0.1.3', |
| 59 | ], |
| 60 | entry_points={'console_scripts': [ |
| 61 | 'pyrsa-priv2pub = rsa.util:private_to_public', |
| 62 | 'pyrsa-keygen = rsa.cli:keygen', |
| 63 | 'pyrsa-encrypt = rsa.cli:encrypt', |
| 64 | 'pyrsa-decrypt = rsa.cli:decrypt', |
| 65 | 'pyrsa-sign = rsa.cli:sign', |
| 66 | 'pyrsa-verify = rsa.cli:verify', |
| 67 | ]}, |
| 68 | |
| 69 | ) |