Grafana dashboard automation
[osm/MON.git] / setup.py
1 # Copyright 2017 Intel Research and Development Ireland Limited
2 # *************************************************************
3
4 # This file is part of OSM Monitoring module
5 # All Rights Reserved to Intel Corporation
6
7 # Licensed under the Apache License, Version 2.0 (the "License"); you may
8 # not use this file except in compliance with the License. You may obtain
9 # a copy of the License at
10
11 # http://www.apache.org/licenses/LICENSE-2.0
12
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 # License for the specific language governing permissions and limitations
17 # under the License.
18
19 # For those usages not covered by the Apache License, Version 2.0 please
20 # contact: prithiv.mohan@intel.com or adrian.hoban@intel.com
21
22 from setuptools import setup
23
24
25 def parse_requirements(requirements):
26 with open(requirements) as f:
27 return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#') and '://' not in l]
28
29
30 _name = 'osm_mon'
31 _version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git-full')
32 _description = 'OSM Monitoring Module'
33 _author = "Benjamín Díaz"
34 _author_email = 'bdiaz@whitestack.com'
35 _maintainer = 'Gianpietro Lavado'
36 _maintainer_email = 'glavado@whitestack.com'
37 _license = 'Apache 2.0'
38 _url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree'
39
40 setup(
41 name=_name,
42 version_command=_version_command,
43 description=_description,
44 long_description=open('README.rst', encoding='utf-8').read(),
45 author=_author,
46 author_email=_author_email,
47 maintainer=_maintainer,
48 maintainer_email=_maintainer_email,
49 url=_url,
50 license=_license,
51 packages=[_name],
52 package_dir={_name: _name},
53 install_requires=[
54 "aiokafka==0.4.*",
55 "requests==2.18.*",
56 "python-keystoneclient==3.15.*",
57 "six==1.11.*",
58 "peewee==3.8.*",
59 "pyyaml>=5.1.2",
60 "prometheus_client==0.4.*",
61 "gnocchiclient==7.0.*",
62 "pyvcloud==19.1.1",
63 "python-ceilometerclient==2.9.*",
64 "peewee-migrate==1.1.*",
65 "python-novaclient==12.0.*",
66 "pymysql==0.9.*",
67 "python-neutronclient==5.1.*",
68 "osm-common",
69 "n2vc"
70 ],
71 include_package_data=True,
72 entry_points={
73 "console_scripts": [
74 "osm-mon-server = osm_mon.cmd.mon_server:main",
75 "osm-mon-evaluator = osm_mon.cmd.mon_evaluator:main",
76 "osm-mon-collector = osm_mon.cmd.mon_collector:main",
77 "osm-mon-dashboarder = osm_mon.cmd.mon_dashboarder:main",
78 "osm-mon-healthcheck = osm_mon.cmd.mon_healthcheck:main",
79 ]
80 },
81 dependency_links=[
82 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common@v5.0',
83 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=n2vc@v5.0'
84 ],
85 setup_requires=['setuptools-version-command']
86 )