From: Benjamin Diaz Date: Mon, 27 Aug 2018 20:27:57 +0000 (-0300) Subject: Adds osm-common dependency X-Git-Tag: v5.0.0~46^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F6438%2F2;p=osm%2FMON.git Adds osm-common dependency Signed-off-by: Benjamin Diaz Change-Id: I3fffdccba381b298d6d6d245d00f6db6b395b6a6 --- diff --git a/policy_module/Dockerfile b/policy_module/Dockerfile index 6e93b30..553ed7b 100644 --- a/policy_module/Dockerfile +++ b/policy_module/Dockerfile @@ -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 diff --git a/policy_module/requirements.txt b/policy_module/requirements.txt index e387896..ad2c105 100644 --- a/policy_module/requirements.txt +++ b/policy_module/requirements.txt @@ -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 diff --git a/policy_module/setup.py b/policy_module/setup.py index afb6bf2..d5c3562 100644 --- a/policy_module/setup.py +++ b/policy_module/setup.py @@ -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' + ] )