forked from sonic-net/sonic-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
247 lines (245 loc) · 7.95 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
# https://github.com/ninjaaron/fast-entry_points
# workaround for slow 'pkg_resources' import
#
# NOTE: this only has effect on console_scripts and no speed-up for commands
# under scripts/. Consider stop using scripts and use console_scripts instead
#
# https://stackoverflow.com/questions/18787036/difference-between-entry-points-console-scripts-and-scripts-in-setup-py
import fastentrypoints
from setuptools import setup
setup(
name='sonic-utilities',
version='1.2',
description='Command-line utilities for SONiC',
license='Apache 2.0',
author='SONiC Team',
author_email='[email protected]',
url='https://github.com/Azure/sonic-utilities',
maintainer='Joe LeVeque',
maintainer_email='[email protected]',
packages=[
'acl_loader',
'clear',
'clear.plugins',
'clear.plugins.auto',
'config',
'config.plugins',
'config.plugins.auto',
'connect',
'consutil',
'counterpoll',
'crm',
'debug',
'generic_config_updater',
'dump',
'dump.plugins',
'pfcwd',
'sfputil',
'ssdutil',
'pfc',
'psuutil',
'flow_counter_util',
'fdbutil',
'fwutil',
'pcieutil',
'pddf_fanutil',
'pddf_psuutil',
'pddf_thermalutil',
'pddf_ledutil',
'show',
'show.interfaces',
'show.plugins',
'show.plugins.auto',
'sonic_installer',
'sonic_installer.bootloader',
'sonic_package_manager',
'sonic_package_manager.service_creator',
'tests',
'undebug',
'utilities_common',
'watchdogutil',
'sonic_cli_gen',
],
package_data={
'generic_config_updater': ['generic_config_updater.conf.json'],
'show': ['aliases.ini'],
'sonic_installer': ['aliases.ini'],
'tests': ['acl_input/*',
'db_migrator_input/*.json',
'db_migrator_input/config_db/*.json',
'db_migrator_input/appl_db/*.json',
'counterpoll_input/*',
'mock_tables/*.py',
'mock_tables/*.json',
'mock_tables/asic0/*.json',
'mock_tables/asic1/*.json',
'mock_tables/asic2/*.json',
'filter_fdb_input/*',
'pfcwd_input/*',
'wm_input/*',
'ecn_input/*',
'dump_input/*']
},
scripts=[
'scripts/aclshow',
'scripts/asic_config_check',
'scripts/boot_part',
'scripts/buffershow',
'scripts/coredump-compress',
'scripts/configlet',
'scripts/db_migrator.py',
'scripts/decode-syseeprom',
'scripts/dropcheck',
'scripts/disk_check.py',
'scripts/dropconfig',
'scripts/dropstat',
'scripts/dump_nat_entries.py',
'scripts/ecnconfig',
'scripts/fabricstat',
'scripts/fanshow',
'scripts/fast-reboot',
'scripts/fast-reboot-dump.py',
'scripts/fdbclear',
'scripts/fdbshow',
'scripts/fibshow',
'scripts/flow_counters_stat',
'scripts/gearboxutil',
'scripts/generate_dump',
'scripts/generate_shutdown_order.py',
'scripts/intfutil',
'scripts/intfstat',
'scripts/ipintutil',
'scripts/lldpshow',
'scripts/log_ssd_health',
'scripts/mellanox_buffer_migrator.py',
'scripts/mmuconfig',
'scripts/natclear',
'scripts/natconfig',
'scripts/natshow',
'scripts/nbrshow',
'scripts/neighbor_advertiser',
'scripts/pcmping',
'scripts/pg-drop',
'scripts/port2alias',
'scripts/portconfig',
'scripts/portstat',
'scripts/pfcstat',
'scripts/psushow',
'scripts/queuestat',
'scripts/reboot',
'scripts/route_check.py',
'scripts/route_check_test.sh',
'scripts/vnet_route_check.py',
'scripts/sfpshow',
'scripts/soft-reboot',
'scripts/storyteller',
'scripts/syseeprom-to-json',
'scripts/tempershow',
'scripts/tunnelstat',
'scripts/update_json.py',
'scripts/voqutil',
'scripts/warm-reboot',
'scripts/watermarkstat',
'scripts/watermarkcfg',
'scripts/sonic-kdump-config',
'scripts/sonic-bootchart',
'scripts/centralize_database',
'scripts/null_route_helper',
'scripts/coredump_gen_handler.py',
'scripts/memory_threshold_check.py',
'scripts/memory_threshold_check_handler.py',
'scripts/techsupport_cleanup.py',
'scripts/storm_control.py',
'scripts/check_db_integrity.py',
'scripts/sysreadyshow'
],
entry_points={
'console_scripts': [
'acl-loader = acl_loader.main:cli',
'config = config.main:config',
'connect = connect.main:connect',
'consutil = consutil.main:consutil',
'counterpoll = counterpoll.main:cli',
'crm = crm.main:cli',
'debug = debug.main:cli',
'dump = dump.main:dump',
'filter_fdb_entries = fdbutil.filter_fdb_entries:main',
'pfcwd = pfcwd.main:cli',
'sfputil = sfputil.main:cli',
'ssdutil = ssdutil.main:ssdutil',
'pfc = pfc.main:cli',
'psuutil = psuutil.main:cli',
'fwutil = fwutil.main:cli',
'pcieutil = pcieutil.main:cli',
'pddf_fanutil = pddf_fanutil.main:cli',
'pddf_psuutil = pddf_psuutil.main:cli',
'pddf_thermalutil = pddf_thermalutil.main:cli',
'pddf_ledutil = pddf_ledutil.main:cli',
'show = show.main:cli',
'sonic-clear = clear.main:cli',
'sonic-installer = sonic_installer.main:sonic_installer',
'sonic_installer = sonic_installer.main:sonic_installer', # Deprecated
'sonic-package-manager = sonic_package_manager.main:cli',
'spm = sonic_package_manager.main:cli',
'undebug = undebug.main:cli',
'watchdogutil = watchdogutil.main:watchdogutil',
'sonic-cli-gen = sonic_cli_gen.main:cli',
]
},
install_requires=[
'click==7.0',
'click-log>=0.3.2',
'docker>=4.4.4',
'docker-image-py>=0.1.10',
'filelock>=3.0.12',
'enlighten>=1.8.0',
'ipaddress>=1.0.23',
'jinja2>=2.11.3',
'jsondiff>=1.2.0',
'jsonpatch>=1.32.0',
'jsonpointer>=1.9',
'm2crypto>=0.31.0',
'natsort>=6.2.1', # 6.2.1 is the last version which supports Python 2. Can update once we no longer support Python 2
'netaddr>=0.8.0',
'netifaces>=0.10.7',
'pexpect>=4.8.0',
'semantic-version>=2.8.5',
'prettyprinter>=0.18.0',
'pyroute2>=0.5.14, <0.6.1',
'requests>=2.25.0',
'sonic-config-engine',
'sonic-platform-common',
'sonic-py-common',
'sonic-yang-mgmt',
'tabulate==0.8.2',
'toposort==1.6',
'www-authenticate==0.9.2',
'xmltodict==0.12.0',
'lazy-object-proxy',
],
setup_requires= [
'pytest-runner',
'wheel'
],
tests_require = [
'pyfakefs',
'responses',
'pytest',
'mockredispy>=2.9.3',
'deepdiff==5.2.3'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
'Topic :: Utilities',
],
keywords='sonic SONiC utilities command line cli CLI',
test_suite='setup.get_test_suite'
)