From 60aa4e61def0e1f1c1470a095092cabb86fa1a2a Mon Sep 17 00:00:00 2001 From: tierno Date: Thu, 29 Oct 2020 15:43:49 +0000 Subject: [PATCH] fix 1273: freezing aiokafka version to 0.6.0 minor typo at dbmongo Change-Id: Iaba9dc9e8f0ff50dfad7d223a3c3ee2d71d44a47 Signed-off-by: tierno --- debian/python3-osm-common.postinst | 2 +- osm_common/dbmongo.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/python3-osm-common.postinst b/debian/python3-osm-common.postinst index 9d91a84..336c445 100755 --- a/debian/python3-osm-common.postinst +++ b/debian/python3-osm-common.postinst @@ -20,7 +20,7 @@ echo "POST INSTALL OSM-COMMON" echo "Installing python dependencies via pip..." -pip3 install --upgrade aiokafka +pip3 install --upgrade aiokafka==0.6.0 pip3 install --upgrade pymongo pip3 install --upgrade pyyaml==5.* pip3 install pycrypto # added dependency python3-crypto seems not working diff --git a/osm_common/dbmongo.py b/osm_common/dbmongo.py index b0686aa..3de900b 100644 --- a/osm_common/dbmongo.py +++ b/osm_common/dbmongo.py @@ -157,7 +157,7 @@ class DbMongo(DbBase): # B or C A.cont=B&A.cont=C; A.cont=B,C >> A: {$in: [B, C]} A.ncont=B >> A: {$nin: B} # must not contain key A or if present not equal to B or if a list, - # it must not not contain B + # it must not contain B A.ncont=B,C; A.ncont=B&A.ncont=C >> A: {$nin: [B,C]} # must not contain key A or if present not equal # neither B nor C; or if a list, it must not contain neither B nor C A.ne=B&A.ne=C; A.ne=B,C >> A: {$nin: [B, C]} diff --git a/setup.py b/setup.py index 25e36fd..6742c7a 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ setup( install_requires=[ 'pymongo', - 'aiokafka', + 'aiokafka==0.6.0', 'PyYAML', 'pycrypto', ], -- 2.17.1