forked from ncouture/MockSSH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·100 lines (71 loc) · 2.49 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
#!/usr/bin/env python
import os
from setuptools import Command, find_packages, setup
NAME = "mock-ssh"
URL = "https://github.com/ruivapps/MockSSH"
AUTHOR = 'Rui Li'
MAINTAINER = 'Rui Li'
AUTHOR_EMAIL = '[email protected]'
LICENSE = 'BSD'
VERSION = '1.4.5'
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Framework :: Twisted',
'Environment :: Console',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Topic :: Software Development :: Testing',
'Topic :: System :: Emulators'
]
PLATFORMS = ['Posix', 'MacOS X', 'Windows']
DESCRIPTION = 'mock-ssh: Mock an SSH server and all commands it supports.'
LONG_DESCRIPTION = '''
MockSSH was developed to emulate operating systems behind SSH servers
in order to test task automation without having access to the real servers.
There has been interest in using MockSSH to perform end-to-end unit tests
against SSH servers and as such, a threaded version of MockSSH server is
available as of version 1.4 (thanks to Claudio Mignanti).
MockSSH is derived from kippo, an SSH honeypot.
'''
SCRIPTS = ['examples/mock_cisco.py', 'examples/mock_F5.py', 'examples/mock.hy']
PY_MODULES = ['MockSSH']
PACKAGES = find_packages(exclude=['tests', 'examples'])
PACKAGE_DATA = {'mocksshy': ['*.hy']}
INSTALL_REQUIRES = ['Twisted==16.7.0rc2', 'paramiko==2.1.1', 'hy==0.11.1']
KEYWORDS = [
'ssh server emulation', 'ssh server testing', 'mock ssh', 'script ssh'
]
class CleanCommand(Command):
user_options = []
def initialize_options(self):
self.cwd = None
def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
assert os.getcwd() == self.cwd, 'Must be in package root: {}'.format(
self.cwd)
os.system('rm -rf ./build ./dist ./*.pyc'
' ./*.tgz ./*.egg-info ./private.key ./public.key')
CMDCLASS = {'clean': CleanCommand}
setup(
url=URL,
name=NAME,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
version=VERSION,
classifiers=CLASSIFIERS,
py_modules=PY_MODULES,
packages=PACKAGES,
package_data=PACKAGE_DATA,
keywords=KEYWORDS,
scripts=SCRIPTS,
install_requires=INSTALL_REQUIRES,
cmdclass=CMDCLASS,
platforms=PLATFORMS,
license=LICENSE)