forked from sonic-net/sonic-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
194 lines (192 loc) · 6.17 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
# 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',
'config',
'connect',
'consutil',
'counterpoll',
'crm',
'debug',
'pfcwd',
'sfputil',
'ssdutil',
'pfc',
'psuutil',
'fdbutil',
'fwutil',
'pcieutil',
'pddf_fanutil',
'pddf_psuutil',
'pddf_thermalutil',
'pddf_ledutil',
'show',
'show.interfaces',
'sonic_installer',
'sonic_installer.bootloader',
'tests',
'undebug',
'utilities_common',
'watchdogutil',
],
package_data={
'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/*']
},
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/dropconfig',
'scripts/dropstat',
'scripts/dump_nat_entries.py',
'scripts/ecnconfig',
'scripts/fanshow',
'scripts/fast-reboot',
'scripts/fast-reboot-dump.py',
'scripts/fdbclear',
'scripts/fdbshow',
'scripts/gearboxutil',
'scripts/generate_dump',
'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/port2alias',
'scripts/portconfig',
'scripts/portstat',
'scripts/pfcstat',
'scripts/psushow',
'scripts/queuestat',
'scripts/reboot',
'scripts/route_check.py',
'scripts/route_check_test.sh',
'scripts/sfpshow',
'scripts/storyteller',
'scripts/syseeprom-to-json',
'scripts/tempershow',
'scripts/update_json.py',
'scripts/warm-reboot',
'scripts/watermarkstat',
'scripts/watermarkcfg',
'scripts/sonic-kdump-config',
'scripts/centralize_database'
],
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',
'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
'undebug = undebug.main:cli',
'watchdogutil = watchdogutil.main:watchdogutil',
]
},
install_requires=[
'click==7.0',
'ipaddress==1.0.23',
'jsondiff==1.2.0',
'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',
'pyroute2==0.5.14',
'requests==2.25.0',
'sonic-platform-common',
'sonic-py-common',
'sonic-yang-mgmt',
'swsssdk>=2.0.1',
'tabulate==0.8.2',
'xmltodict==0.12.0',
],
setup_requires= [
'pytest-runner',
'wheel'
],
tests_require = [
'pytest',
'mockredispy>=2.9.3',
'sonic-config-engine'
],
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'
)