forked from Maxbey/termius-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
106 lines (97 loc) · 3.43 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
101
102
103
104
105
106
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from termius import __version__
# pylint: disable=invalid-name
cli_command_name = 'termius'
# pylint: disable=invalid-name
requires = [
'cliff>=1.15',
'stevedore>=1.10.0',
'requests>=2.7.0',
'cryptography>=1.3.1',
'six>=1.10.0',
'ndg-httpsclient>=0.4.0',
'pyopenssl>=0.15.1',
'cached-property>=1.3.0',
'paramiko>=1.16.0',
'pathlib2>=2.1.0',
'blinker>=1.4',
]
# pylint: disable=invalid-name
handlers = [
'sync = termius.sync.commands:SyncCommand',
'login = termius.account.commands:LoginCommand',
'logout = termius.account.commands:LogoutCommand',
'settings = termius.account.commands:SettingsCommand',
'push = termius.cloud.commands:PushCommand',
'pull = termius.cloud.commands:PullCommand',
'fullclean = termius.cloud.commands:FullCleanCommand',
'snippet = termius.handlers:SnippetCommand',
'snippets = termius.handlers:SnippetsCommand',
'host = termius.handlers:HostCommand',
'hosts = termius.handlers:HostsCommand',
'identity = termius.handlers:IdentityCommand',
'identities = termius.handlers:IdentitiesCommand',
'key = termius.handlers:SshKeyCommand',
'keys = termius.handlers:SshKeysCommand',
'group = termius.handlers:GroupCommand',
'groups = termius.handlers:GroupsCommand',
'pfrule = termius.handlers:PFRuleCommand',
'pfrules = termius.handlers:PFRulesCommand',
'tags = termius.handlers:TagsCommand',
'info = termius.handlers:InfoCommand',
'connect = termius.handlers:ConnectCommand',
'crypto = termius.cloud.commands:CryptoCommand',
]
def get_long_description():
try:
import pypandoc
return pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
return f.read()
setup(
name='termius',
version=__version__,
license='BSD',
author='Crystalnix',
author_email='[email protected]',
url='https://github.com/Crystalnix/termius-cli',
description='Termius ssh-config utility.',
long_description=get_long_description(),
keywords=['termius', 'crystalnix'],
packages=find_packages(exclude=['tests']),
install_requires=requires,
test_suite='nose.collector',
zip_safe=False,
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
entry_points={
'console_scripts': [
'{} = termius.main:main'.format(cli_command_name)
],
'termius.handlers': handlers,
'termius.info.formatters': [
'ssh = termius.formatters.ssh:SshFormatter',
'table = cliff.formatters.table:TableFormatter',
'shell = cliff.formatters.shell:ShellFormatter',
'value = cliff.formatters.value:ValueFormatter',
'yaml = cliff.formatters.yaml_format:YAMLFormatter',
'json = cliff.formatters.json_format:JSONFormatter',
],
'termius.sync.providers': [
'ssh = termius.sync.providers.ssh:SSHService',
],
},
)