Refactors code in OpenStack plugin
[osm/MON.git] / setup.py
index 648d9e9..dc5812f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -19,8 +19,6 @@
 # For those usages not covered by the Apache License, Version 2.0 please
 # contact: prithiv.mohan@intel.com or adrian.hoban@intel.com
 
-__author__ = "Prithiv Mohan"
-__date__ = "14/Sep/2017"
 from setuptools import setup
 
 
@@ -30,31 +28,56 @@ def parse_requirements(requirements):
 
 
 _name = 'osm_mon'
-_version = '1.0'
+_version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git-full')
 _description = 'OSM Monitoring Module'
-_author = 'Prithiv Mohan'
-_author_email = 'prithiv.mohan@intel.com'
-_maintainer = 'Adrian Hoban'
-_maintainer_email = 'adrian.hoban@intel.com'
+_author = "Benjamín Díaz"
+_author_email = 'bdiaz@whitestack.com'
+_maintainer = 'Gianpietro Lavado'
+_maintainer_email = 'glavado@whitestack.com'
 _license = 'Apache 2.0'
 _url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree'
-setup(name="osm_mon",
-      version=_version,
-      description=_description,
-      long_description=open('README.rst').read(),
-      author=_author,
-      author_email=_author_email,
-      maintainer=_maintainer,
-      maintainer_email=_maintainer_email,
-      url=_url,
-      license=_license,
-      packages=[_name],
-      package_dir={_name: _name},
-      scripts=['osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice',
-               'osm_mon/core/message_bus/common_consumer.py'],
-      install_requires=parse_requirements('requirements.txt'),
-      include_package_data=True,
-      dependency_links=[
-          'git+https://osm.etsi.org/gerrit/osm/common.git@857731b#egg=osm-common'
-      ]
-      )
+
+setup(
+    name=_name,
+    version_command=_version_command,
+    description=_description,
+    long_description=open('README.rst').read(),
+    author=_author,
+    author_email=_author_email,
+    maintainer=_maintainer,
+    maintainer_email=_maintainer_email,
+    url=_url,
+    license=_license,
+    packages=[_name],
+    package_dir={_name: _name},
+    scripts=['osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice',
+             'osm_mon/core/message_bus/common_consumer.py'],
+    install_requires=[
+        "kafka==1.3.*",
+        "requests==2.18.*",
+        "cherrypy==14.0.*",
+        "jsmin==2.2.*",
+        "jsonschema==2.6.*",
+        "python-keystoneclient==3.15.*",
+        "boto==2.48",
+        "python-cloudwatchlogs-logging==0.0.3",
+        "py-cloudwatch==0.0.1",
+        "pyvcloud==19.1.1",
+        "pyopenssl==17.5.*",
+        "six==1.11.*",
+        "bottle==0.12.*",
+        "peewee==3.1.*",
+        "pyyaml==3.*",
+        "osm-common"
+    ],
+    include_package_data=True,
+    entry_points={
+        "console_scripts": [
+            "osm-mon-exporter = osm_mon.cmd.exporter:main",
+        ]
+    },
+    dependency_links=[
+        'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common'
+    ],
+    setup_requires=['setuptools-version-command']
+)