blob: 2d22865cee3e253a65b7d836d5e863c13d0db22e [file] [log] [blame]
Sybren A. Stüveld15a7f32020-06-11 18:53:41 +02001#!/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',
Sybren A. Stüvelcedefea2020-06-12 22:24:49 +020028 version='4.6',
Sybren A. Stüveld15a7f32020-06-11 18:53:41 +020029 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üvele7c0b2a2020-06-12 19:52:51 +020051 'Programming Language :: Python :: 3.8',
Sybren A. Stüveld15a7f32020-06-11 18:53:41 +020052 'Programming Language :: Python :: Implementation :: CPython',
53 'Programming Language :: Python :: Implementation :: PyPy',
54 'Topic :: Security :: Cryptography',
55 ],
Sybren A. Stüvele7c0b2a2020-06-12 19:52:51 +020056 python_requires='>=3.5, <4',
Sybren A. Stüveld15a7f32020-06-11 18:53:41 +020057 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 )