Merge "MON Packaging Changes"
[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 __author__ = "Prithiv Mohan"
23 __date__ = "14/Sep/2017"
24
25 #!/usr/bin/env python
26
27 from setuptools import setup
28 from os import system
29
30 _name = 'core'
31 _version = '1.0'
32 _description = 'OSM Monitoring Module'
33 _author = 'Prithiv Mohan'
34 _author_email = 'prithiv.mohan@intel.com'
35 _maintainer = 'Adrian Hoban'
36 _maintainer_email = 'adrian.hoban@intel.com'
37 _license = 'Apache 2.0'
38 _copyright = 'Intel Research and Development Ireland'
39 _url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree'
40 _requirements = [
41 "stdeb",
42 "MySQL-python",
43 "requests",
44 "logutils",
45 "cherrypy",
46 "jsmin",
47 "jsonschema",
48 "python-openstackclient",
49 "python-novaclient",
50 "python-keystoneclient",
51 "python-neutronclient",
52 "aodhclient",
53 "gnocchiclient",
54 "boto==2.48",
55 "python-cloudwatchlogs-logging",
56 "py-cloudwatch",
57 "pyvcloud",
58 "pyopenssl",
59 "cherrypy",
60 "bottle",
61 "six",
62 ]
63
64 setup(name="mon_core",
65 version = _version,
66 description = _description,
67 long_description = open('README.rst').read(),
68 author = _author,
69 author_email = _author_email,
70 maintainer = _maintainer,
71 maintainer_email = _maintainer_email,
72 url = _url,
73 license = _license,
74 copyright = _copyright,
75 packages = [_name],
76 package_dir = {_name: _name},
77 package_data = {_name: ['core/message_bus/*.py', 'core/models/*.json',
78 'plugins/OpenStack/Aodh/*.py', 'plugins/OpenStack/Gnocchi/*.py',
79 'plugins/vRealiseOps/*', 'plugins/CloudWatch/*']},
80 data_files = [('/etc/systemd/system/', ['scripts/kafka.sh']),
81 ],
82 scripts=['plugins/vRealiseOps/vROPs_Webservice/vrops_webservice',
83 'kafkad'],
84 install_requires = _requirements,
85 include_package_data=True,
86 )