From: tierno Date: Thu, 29 Oct 2020 15:43:49 +0000 (+0000) Subject: fix 1273: freezing aiokafka version to 0.6.0 X-Git-Tag: v8.0.3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=e7476b347c50009bda2d0959d8304e1f66c9f4c2;p=osm%2Fcommon.git fix 1273: freezing aiokafka version to 0.6.0 minor typo at dbmongo Change-Id: Iaba9dc9e8f0ff50dfad7d223a3c3ee2d71d44a47 Signed-off-by: tierno --- 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', ],