Fixes Bug 1273 - aiokafka>0.7.0 needs extra dependency for python < 3.7.0 24/9924/4
authorfonsecaj <jpedrofonseca@av.it.pt>
Thu, 29 Oct 2020 15:20:09 +0000 (15:20 +0000)
committerfonsecaj <jpedrofonseca@av.it.pt>
Thu, 29 Oct 2020 18:55:21 +0000 (20:55 +0200)
Change-Id: I7f698e2c7ed2c7ab34baa0fa651ea3d50c572151
Signed-off-by: fonsecaj <jpedrofonseca@av.it.pt>
debian/python3-osm-common.postinst
setup.py

index 9d91a84..fa43cbc 100755 (executable)
@@ -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.*
index 25e36fd..157ffec 100644 (file)
--- 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',
     ],
 )