forked from sonic-net/sonic-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
150 lines (148 loc) · 4.68 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
# 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
try:
import fastentrypoints
except ImportError:
from setuptools.command import easy_install
import pkg_resources
easy_install.main(['fastentrypoints'])
pkg_resources.require('fastentrypoints')
import fastentrypoints
import glob
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='linuxnetdev@microsoft.com',
url='https://github.com/Azure/sonic-utilities',
maintainer='Joe LeVeque',
maintainer_email='jolevequ@microsoft.com',
packages=[
'acl_loader',
'clear',
'config',
'connect',
'consutil',
'counterpoll',
'crm',
'debug',
'pfcwd',
'sfputil',
'ssdutil',
'pfc',
'psuutil',
'show',
'sonic_installer',
'sonic-utilities-tests',
'undebug',
'utilities_common',
],
package_data={
'show': ['aliases.ini'],
'sonic-utilities-tests': ['acl_input/*', 'mock_tables/*.py', 'mock_tables/*.json']
},
scripts=[
'scripts/aclshow',
'scripts/asic_config_check',
'scripts/boot_part',
'scripts/coredump-compress',
'scripts/configlet',
'scripts/db_migrator.py',
'scripts/decode-syseeprom',
'scripts/dropcheck',
'scripts/ecnconfig',
'scripts/fast-reboot',
'scripts/fast-reboot-dump.py',
'scripts/fdbclear',
'scripts/fdbshow',
'scripts/generate_dump',
'scripts/intfutil',
'scripts/intfstat',
'scripts/lldpshow',
'scripts/mmuconfig',
'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/teamshow',
'scripts/warm-reboot',
'scripts/watermarkstat',
'scripts/watermarkcfg'
],
data_files=[
('/etc/bash_completion.d', glob.glob('data/etc/bash_completion.d/*')),
],
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',
'pfcwd = pfcwd.main:cli',
'sfputil = sfputil.main:cli',
'ssdutil = ssdutil.main:ssdutil',
'pfc = pfc.main:cli',
'psuutil = psuutil.main:cli',
'show = show.main:cli',
'sonic-clear = clear.main:cli',
'sonic_installer = sonic_installer.main:cli',
'undebug = undebug.main:cli',
]
},
# NOTE: sonic-utilities also depends on other packages that are either only
# available as .whl files or the latest available Debian packages are
# out-of-date and we must install newer versions via pip. These
# dependencies cannot be listed here, as this package is built as a .deb,
# therefore all dependencies will be assumed to also be available as .debs.
# These unlistable dependencies are as follows:
# - sonic-config-engine
# - swsssdk
# - tabulate
install_requires=[
'click-default-group',
'click',
'natsort'
],
setup_requires= [
'pytest-runner'
],
tests_require = [
'pytest',
'mock>=2.0.0',
'mockredispy>=2.9.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 :: 2.7',
'Topic :: Utilities',
],
keywords='sonic SONiC utilities command line cli CLI',
test_suite='setup.get_test_suite'
)