-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
77 lines (72 loc) · 3.32 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
#!/usr/bin/env python
# This file is part of opentsdb-snmp.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. This program is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
# General Public License for more details. You should have received a copy
# of the GNU Lesser General Public License along with this program. If not,
# see <http://www.gnu.org/licenses/>.
import sys
sys.path.insert(0, "misc")
from distribute_setup import use_setuptools
use_setuptools()
import setuptools
import version
setuptools.setup(
name="opentsdb.snmp",
version=version.get_git_version(),
namespace_packages=["opentsdb"],
packages=setuptools.find_packages("src"),
package_dir={
"": "src",
},
package_data={
},
install_requires=[
"pyyaml"
],
tests_require=[
"nose>=1.0",
"mock>=0.8."
],
entry_points={
"console_scripts": [
"opentsdb-snmp=opentsdb.snmp.main:run"
],
"resolvers": [
"default=opentsdb.snmp.resolvers.default:Default",
"ifname=opentsdb.snmp.resolvers.ifname:IfName",
"after_idx=opentsdb.snmp.resolvers.after_idx:AfterIndex",
"after_idx_ifname=opentsdb.snmp.resolvers.after_idx_ifname:AfterIndexIfname",
"huawei_ifname=opentsdb.snmp.resolvers.huawei:HuaweiIfName",
"huawei_after_idx=opentsdb.snmp.resolvers.huawei:HuaweiAfterIndex",
"huawei_us_ds=opentsdb.snmp.resolvers.huawei:HuaweiAfterIndexUsDs",
"huawei_sys=opentsdb.snmp.resolvers.huawei:HuaweiAfterIndexSys",
"huawei_temp=opentsdb.snmp.resolvers.huawei:HuaweiTemperature",
"huawei_ont_port=opentsdb.snmp.resolvers.huawei:HuaweiOnt",
"d500_xdsl=opentsdb.snmp.resolvers.d500_xdsl:D500_xdsl",
"isam_nfxsa_card=opentsdb.snmp.resolvers.isam_xdsl:NFXSAcard",
"isam_nfxsb_card=opentsdb.snmp.resolvers.isam_xdsl:NFXSBcard",
"isam_nfxsa_xdsl=opentsdb.snmp.resolvers.isam_xdsl:IsamNFXSA",
"isam56_nfxsa_xdsl=opentsdb.snmp.resolvers.isam_xdsl:Isam56NFXSA",
"isam_nfxsb_xdsl=opentsdb.snmp.resolvers.isam_xdsl:IsamNFXSB",
"isam56_nfxsb_xdsl=opentsdb.snmp.resolvers.isam_xdsl:Isam56NFXSB",
"isam_nfxsa_octets=opentsdb.snmp.resolvers.isam_xdsl:IsamNFXSAOctets",
"isam56_nfxsa_octets=opentsdb.snmp.resolvers.isam_xdsl:Isam56NFXSAOctets",
"isam_nfxsb_octets=opentsdb.snmp.resolvers.isam_xdsl:IsamNFXSBOctets",
"isam56_nfxsb_octets=opentsdb.snmp.resolvers.isam_xdsl:Isam56NFXSBOctets",
"isam_old_xdsl=opentsdb.snmp.resolvers.isam_xdsl:IsamOld",
"isam_old_octets=opentsdb.snmp.resolvers.isam_xdsl:IsamOldOctets",
"nec_ipaso_modem=opentsdb.snmp.resolvers.nec_paso:NECIPasoModem",
"nec_paso_modem=opentsdb.snmp.resolvers.nec_paso:NECPasoNEOModem",
],
"value_modifiers": [
"rate=opentsdb.snmp.value_modifiers.rate:Rate",
]
},
test_suite="nose.collector",
)