forked from paramiko/paramiko
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
100 lines (85 loc) · 3.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Copyright (C) 2003-2008 Robey Pointer <[email protected]>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Paramiko is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import os
from setuptools import setup
longdesc = '''
*paramiko-ng* is a fork of `paramiko <https://pypi.org/project/paramiko/>`_
for more active maintenance.
For changes in releases of this fork, see https://github.com/ploxiln/paramiko-ng/releases
This is a library for making SSH2 connections (client or server).
Emphasis is on using SSH2 as an alternative to SSL for making secure
connections between python scripts. All major ciphers and hash methods
are supported. SFTP client and server mode are both supported too.
Required packages:
Cryptography
The import name is still just ``paramiko``. Make sure the original *paramiko*
is not installed before installing *paramiko-ng* - otherwise pip may report
success even though *paramiko-ng* was not correctly installed.
(Because the import name is the same, installed files can conflict.)
You can also install under the original "paramiko" pip-package-name,
in order to satisfy requirements for other packages::
PARAMIKO_REPLACE=1 pip install "https://github.com/ploxiln/paramiko-ng/archive/2.8.10.tar.gz#egg=paramiko"
Replace "2.8.10" with the desired version.
To install the latest development version::
pip install -e "git+https://github.com/ploxiln/paramiko-ng/#egg=paramiko-ng"
''' # noqa: E501
name = "paramiko" if os.environ.get('PARAMIKO_REPLACE') else "paramiko-ng"
# Version info -- read without importing
_locals = {}
with open('paramiko/_version.py') as fp:
exec(fp.read(), None, _locals)
version = _locals['__version__']
setup(
name=name,
version=version,
packages=['paramiko'],
description="SSH2 protocol library",
long_description=longdesc,
author="Jeff Forcier",
author_email="[email protected]",
maintainer='Pierce Lopez',
maintainer_email='[email protected]',
url="https://github.com/ploxiln/paramiko-ng/",
license='LGPL',
platforms='Posix; MacOS X; Windows',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: '
'GNU Library or Lesser General Public License (LGPL)',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Security :: Cryptography',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=[
'bcrypt>=3',
'cryptography>=2.6',
],
extras_require={
'Ed25519': [], # can be removed in 3.0
'gssapi': [
"pyasn1",
'gssapi;platform_system!="Windows"',
'pywin32;platform_system=="Windows"',
],
},
)