blob: 2c40bd66fdff3094d9e4a05aee369a6454e4125e [file] [log] [blame]
prithiv897fb362017-09-15 14:59:44 +01001# 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
prithiv897fb362017-09-15 14:59:44 +010022from setuptools import setup
Benjamin Diazb7261612018-05-11 18:00:16 -030023
24
25def 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
prithivc7397b92017-11-23 13:47:34 +000030_name = 'osm_mon'
lavado20596312018-10-01 09:59:17 -050031_version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git-full')
Benjamin Diaz31c6f752018-09-26 17:30:55 -030032_description = 'OSM Monitoring Module'
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030033_author = "Benjamín Díaz"
34_author_email = 'bdiaz@whitestack.com'
35_maintainer = 'Gianpietro Lavado'
36_maintainer_email = 'glavado@whitestack.com'
prithiv897fb362017-09-15 14:59:44 +010037_license = 'Apache 2.0'
prithiv897fb362017-09-15 14:59:44 +010038_url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree'
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030039
40setup(
41 name=_name,
42 version_command=_version_command,
43 description=_description,
Benjamin Diazde3d5702018-11-22 17:27:35 -030044 long_description=open('README.rst', encoding='utf-8').read(),
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030045 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 Diaz31c6f752018-09-26 17:30:55 -030053 install_requires=[
bravof4509db82020-06-12 11:10:15 -040054 "aiokafka==0.6.0",
Benjamin Diaz31c6f752018-09-26 17:30:55 -030055 "requests==2.18.*",
Benjamin Diaz31c6f752018-09-26 17:30:55 -030056 "python-keystoneclient==3.15.*",
agarwalatc641dae2020-11-12 09:57:34 +000057 "six",
Benjamin Diazb2b43da2019-02-21 16:24:56 -030058 "peewee==3.8.*",
lavadoe492a792019-11-11 16:25:35 -050059 "pyyaml>=5.1.2",
Benjamin Diaz0e342442018-11-09 17:52:08 -030060 "prometheus_client==0.4.*",
61 "gnocchiclient==7.0.*",
kasarca663f82019-01-30 02:03:40 -080062 "pyvcloud==19.1.1",
Benjamin Diaz8721c5c2019-02-19 20:49:39 -030063 "python-ceilometerclient==2.9.*",
agarwalatc641dae2020-11-12 09:57:34 +000064 # "peewee-migrate==1.1.*",
Benjamin Diaz616fde72019-02-22 16:36:00 -030065 "python-novaclient==12.0.*",
Benjamin Diaz30d94692019-02-25 17:19:23 -030066 "pymysql==0.9.*",
Benjamin Diaz6b45f212019-04-16 12:41:24 -030067 "python-neutronclient==5.1.*",
Benjamin Diaz91b10182018-10-23 19:44:26 -030068 "osm-common",
69 "n2vc"
Benjamin Diaz31c6f752018-09-26 17:30:55 -030070 ],
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030071 include_package_data=True,
Benjamin Diazdec1bb52018-10-10 16:50:44 -030072 entry_points={
73 "console_scripts": [
Benjamin Diaz51f44862018-11-15 10:27:12 -030074 "osm-mon-server = osm_mon.cmd.mon_server:main",
75 "osm-mon-evaluator = osm_mon.cmd.mon_evaluator:main",
Benjamin Diaz0e342442018-11-09 17:52:08 -030076 "osm-mon-collector = osm_mon.cmd.mon_collector:main",
lavado456d0f32019-11-15 17:04:02 -050077 "osm-mon-dashboarder = osm_mon.cmd.mon_dashboarder:main",
Benjamin Diazde3d5702018-11-22 17:27:35 -030078 "osm-mon-healthcheck = osm_mon.cmd.mon_healthcheck:main",
Benjamin Diazdec1bb52018-10-10 16:50:44 -030079 ]
80 },
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030081 dependency_links=[
Benjamin Diaz6b45f212019-04-16 12:41:24 -030082 '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'
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030084 ],
85 setup_requires=['setuptools-version-command']
86)