| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 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" |
| Benjamin Diaz | b726161 | 2018-05-11 18:00:16 -0300 | [diff] [blame] | 23 | __date__ = "14/Sep/2017" |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 24 | from setuptools import setup |
| Benjamin Diaz | b726161 | 2018-05-11 18:00:16 -0300 | [diff] [blame] | 25 | |
| 26 | |
| 27 | def parse_requirements(requirements): |
| 28 | with open(requirements) as f: |
| 29 | return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#') and '://' not in l] |
| 30 | |
| 31 | |
| prithiv | c7397b9 | 2017-11-23 13:47:34 +0000 | [diff] [blame] | 32 | _name = 'osm_mon' |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 33 | _version = '1.0' |
| 34 | _description = 'OSM Monitoring Module' |
| 35 | _author = 'Prithiv Mohan' |
| 36 | _author_email = 'prithiv.mohan@intel.com' |
| 37 | _maintainer = 'Adrian Hoban' |
| 38 | _maintainer_email = 'adrian.hoban@intel.com' |
| 39 | _license = 'Apache 2.0' |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 40 | _url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree' |
| prithiv | 71ce7ec | 2017-11-22 16:46:11 +0000 | [diff] [blame] | 41 | setup(name="osm_mon", |
| Benjamin Diaz | b726161 | 2018-05-11 18:00:16 -0300 | [diff] [blame] | 42 | version=_version, |
| 43 | description=_description, |
| 44 | long_description=open('README.rst').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 | package_data={_name: ['osm_mon/core/message_bus/*.py', 'osm_mon/core/models/*.json', |
| 54 | 'osm_mon/plugins/OpenStack/Aodh/*.py', 'osm_mon/plugins/OpenStack/Gnocchi/*.py', |
| 55 | 'osm_mon/plugins/vRealiseOps/*', 'osm_mon/plugins/CloudWatch/*']}, |
| prithiv | c7397b9 | 2017-11-23 13:47:34 +0000 | [diff] [blame] | 56 | scripts=['osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice', |
| Benjamin Diaz | b726161 | 2018-05-11 18:00:16 -0300 | [diff] [blame] | 57 | 'osm_mon/core/message_bus/common_consumer.py'], |
| 58 | install_requires=parse_requirements('requirements.txt'), |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 59 | include_package_data=True, |
| Benjamin Diaz | b726161 | 2018-05-11 18:00:16 -0300 | [diff] [blame] | 60 | dependency_links=[ |
| 61 | 'git+https://osm.etsi.org/gerrit/osm/common.git@857731b#egg=osm-common' |
| 62 | ] |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 63 | ) |