| 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 | |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 22 | from setuptools import setup |
| Benjamin Diaz | b726161 | 2018-05-11 18:00:16 -0300 | [diff] [blame] | 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 | |
| prithiv | c7397b9 | 2017-11-23 13:47:34 +0000 | [diff] [blame] | 30 | _name = 'osm_mon' |
| lavado | 2059631 | 2018-10-01 09:59:17 -0500 | [diff] [blame] | 31 | _version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git-full') |
| Benjamin Diaz | 31c6f75 | 2018-09-26 17:30:55 -0300 | [diff] [blame] | 32 | _description = 'OSM Monitoring Module' |
| Benjamin Diaz | 8ddd3b9 | 2018-09-18 12:43:18 -0300 | [diff] [blame] | 33 | _author = "Benjamín Díaz" |
| 34 | _author_email = 'bdiaz@whitestack.com' |
| 35 | _maintainer = 'Gianpietro Lavado' |
| 36 | _maintainer_email = 'glavado@whitestack.com' |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 37 | _license = 'Apache 2.0' |
| prithiv | 897fb36 | 2017-09-15 14:59:44 +0100 | [diff] [blame] | 38 | _url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree' |
| Benjamin Diaz | 8ddd3b9 | 2018-09-18 12:43:18 -0300 | [diff] [blame] | 39 | |
| 40 | setup( |
| 41 | name=_name, |
| 42 | version_command=_version_command, |
| 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}, |
| Benjamin Diaz | 31c6f75 | 2018-09-26 17:30:55 -0300 | [diff] [blame] | 53 | install_requires=[ |
| Benjamin Diaz | 91b1018 | 2018-10-23 19:44:26 -0300 | [diff] [blame] | 54 | "kafka-python==1.4.*", |
| Benjamin Diaz | 31c6f75 | 2018-09-26 17:30:55 -0300 | [diff] [blame] | 55 | "requests==2.18.*", |
| 56 | "cherrypy==14.0.*", |
| 57 | "jsmin==2.2.*", |
| 58 | "jsonschema==2.6.*", |
| 59 | "python-keystoneclient==3.15.*", |
| 60 | "boto==2.48", |
| 61 | "python-cloudwatchlogs-logging==0.0.3", |
| 62 | "py-cloudwatch==0.0.1", |
| 63 | "pyvcloud==19.1.1", |
| 64 | "pyopenssl==17.5.*", |
| 65 | "six==1.11.*", |
| 66 | "bottle==0.12.*", |
| 67 | "peewee==3.1.*", |
| 68 | "pyyaml==3.*", |
| Benjamin Diaz | 0e34244 | 2018-11-09 17:52:08 -0300 | [diff] [blame] | 69 | "prometheus_client==0.4.*", |
| 70 | "gnocchiclient==7.0.*", |
| Benjamin Diaz | 91b1018 | 2018-10-23 19:44:26 -0300 | [diff] [blame] | 71 | "osm-common", |
| 72 | "n2vc" |
| Benjamin Diaz | 31c6f75 | 2018-09-26 17:30:55 -0300 | [diff] [blame] | 73 | ], |
| Benjamin Diaz | 8ddd3b9 | 2018-09-18 12:43:18 -0300 | [diff] [blame] | 74 | include_package_data=True, |
| Benjamin Diaz | dec1bb5 | 2018-10-10 16:50:44 -0300 | [diff] [blame] | 75 | entry_points={ |
| 76 | "console_scripts": [ |
| Benjamin Diaz | 51f4486 | 2018-11-15 10:27:12 -0300 | [diff] [blame] | 77 | "osm-mon-server = osm_mon.cmd.mon_server:main", |
| 78 | "osm-mon-evaluator = osm_mon.cmd.mon_evaluator:main", |
| Benjamin Diaz | 0e34244 | 2018-11-09 17:52:08 -0300 | [diff] [blame] | 79 | "osm-mon-collector = osm_mon.cmd.mon_collector:main", |
| Benjamin Diaz | dec1bb5 | 2018-10-10 16:50:44 -0300 | [diff] [blame] | 80 | ] |
| 81 | }, |
| Benjamin Diaz | 8ddd3b9 | 2018-09-18 12:43:18 -0300 | [diff] [blame] | 82 | dependency_links=[ |
| 83 | 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common' |
| 84 | ], |
| 85 | setup_requires=['setuptools-version-command'] |
| 86 | ) |