• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
20from io import open
21from setuptools import setup
22
23with open('README.md', encoding='utf-8') as f:
24    long_description = f.read()
25
26if __name__ == '__main__':
27    setup(name='rsa',
28          version='4.7',
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',
51              'Programming Language :: Python :: 3.8',
52              'Programming Language :: Python :: 3.9',
53              'Programming Language :: Python :: Implementation :: CPython',
54              'Programming Language :: Python :: Implementation :: PyPy',
55              'Topic :: Security :: Cryptography',
56          ],
57          python_requires='>=3.5, <4',
58          install_requires=[
59              'pyasn1 >= 0.1.3',
60          ],
61          entry_points={'console_scripts': [
62              'pyrsa-priv2pub = rsa.util:private_to_public',
63              'pyrsa-keygen = rsa.cli:keygen',
64              'pyrsa-encrypt = rsa.cli:encrypt',
65              'pyrsa-decrypt = rsa.cli:decrypt',
66              'pyrsa-sign = rsa.cli:sign',
67              'pyrsa-verify = rsa.cli:verify',
68          ]},
69
70          )
71