blob: 6ea105cea6d907f0fd301a3cf60172c0d619cbec [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'
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030031_version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git')
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,
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 scripts=['osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice',
54 'osm_mon/core/message_bus/common_consumer.py'],
Benjamin Diaz31c6f752018-09-26 17:30:55 -030055 install_requires=[
56 "kafka==1.3.*",
57 "requests==2.18.*",
58 "cherrypy==14.0.*",
59 "jsmin==2.2.*",
60 "jsonschema==2.6.*",
61 "python-keystoneclient==3.15.*",
62 "boto==2.48",
63 "python-cloudwatchlogs-logging==0.0.3",
64 "py-cloudwatch==0.0.1",
65 "pyvcloud==19.1.1",
66 "pyopenssl==17.5.*",
67 "six==1.11.*",
68 "bottle==0.12.*",
69 "peewee==3.1.*",
70 "pyyaml==3.*",
71 "osm-common"
72 ],
Benjamin Diaz8ddd3b92018-09-18 12:43:18 -030073 include_package_data=True,
74 dependency_links=[
75 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common'
76 ],
77 setup_requires=['setuptools-version-command']
78)