From: fonsecaj Date: Thu, 29 Oct 2020 15:20:09 +0000 (+0000) Subject: Fixes Bug 1273 - aiokafka>0.7.0 needs extra dependency for python < 3.7.0 X-Git-Tag: release-v9.0-start~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F9924%2F4;p=osm%2Fcommon.git Fixes Bug 1273 - aiokafka>0.7.0 needs extra dependency for python < 3.7.0 Change-Id: I7f698e2c7ed2c7ab34baa0fa651ea3d50c572151 Signed-off-by: fonsecaj --- diff --git a/debian/python3-osm-common.postinst b/debian/python3-osm-common.postinst index 9d91a84..fa43cbc 100755 --- a/debian/python3-osm-common.postinst +++ b/debian/python3-osm-common.postinst @@ -20,6 +20,7 @@ echo "POST INSTALL OSM-COMMON" echo "Installing python dependencies via pip..." +pip3 install dataclasses pip3 install --upgrade aiokafka pip3 install --upgrade pymongo pip3 install --upgrade pyyaml==5.* diff --git a/setup.py b/setup.py index 25e36fd..157ffec 100644 --- a/setup.py +++ b/setup.py @@ -44,10 +44,12 @@ setup( include_package_data=True, # scripts=['nbi.py'], + # dataclasses is required by aiokafka for Python <3.7.0 install_requires=[ 'pymongo', 'aiokafka', 'PyYAML', 'pycrypto', + 'dataclasses', ], )