Adds osm-common dependency 38/6438/2
authorBenjamin Diaz <bdiaz@whitestack.com>
Mon, 27 Aug 2018 20:27:57 +0000 (17:27 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Tue, 28 Aug 2018 16:01:35 +0000 (13:01 -0300)
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I3fffdccba381b298d6d6d245d00f6db6b395b6a6

policy_module/Dockerfile
policy_module/requirements.txt
policy_module/setup.py

index 6e93b30..553ed7b 100644 (file)
@@ -25,7 +25,7 @@ FROM ubuntu:16.04
 LABEL authors="Benjamín Díaz"
 
 RUN apt-get --yes update \
- && apt-get --yes install python3 python3-pip libmysqlclient-dev \
+ && apt-get --yes install python3 python3-pip libmysqlclient-dev git \
  && pip3 install pip==9.0.3
 
 COPY requirements.txt /policy_module/requirements.txt
index e387896..ad2c105 100644 (file)
@@ -3,4 +3,5 @@ peewee==3.1.*
 jsonschema==2.6.*
 six==1.11.*
 pyyaml==3.*
-python-logstash==0.4.*
\ No newline at end of file
+python-logstash==0.4.*
+git+https://osm.etsi.org/gerrit/osm/common.git@v4.0.1#egg=osm-common
\ No newline at end of file
index afb6bf2..d5c3562 100644 (file)
@@ -26,7 +26,7 @@ import setuptools
 
 def parse_requirements(requirements):
     with open(requirements) as f:
-        return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#')]
+        return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#') and '://' not in l]
 
 
 _author = "Benjamín Díaz"
@@ -52,10 +52,21 @@ setuptools.setup(
     license=_license,
     packages=setuptools.find_packages(),
     include_package_data=True,
-    install_requires=parse_requirements('requirements.txt'),
+    install_requires=[
+        'kafka==1.3.*',
+        'peewee==3.1.*',
+        'jsonschema==2.6.*',
+        'six==1.11.*',
+        'pyyaml==3.*',
+        'python-logstash==0.4.*',
+        'osm-common==4.*'
+    ],
     entry_points={
         "console_scripts": [
             "osm-policy-agent = osm_policy_module.cmd.policy_module_agent:main",
         ]
-    }
+    },
+    dependency_links=[
+        'git+https://osm.etsi.org/gerrit/osm/common.git@v4.0.1#egg=osm-common'
+    ]
 )