MOTOR-1368 Cap PyMongo dependency to <4.9 (#309)
This commit is contained in:
parent
822e0240ea
commit
cbe3ca191f
@ -3,6 +3,10 @@ Changelog
|
||||
|
||||
.. currentmodule:: motor.motor_tornado
|
||||
|
||||
Motor 3.5.2
|
||||
-----------
|
||||
- Update the PyMongo dependency requirement to >=4.5 and <4.9. Apps that require PyMongo >=4.9 must upgrade to Motor >=3.6.
|
||||
|
||||
Motor 3.5.1
|
||||
-----------
|
||||
- Fix runtime behavior of Motor generic class typing, e.g. ``client: AsyncIOMotorClient[Dict[str, Any]]``.
|
||||
|
||||
@ -1 +1 @@
|
||||
pymongo>=4.5,<5
|
||||
pymongo>=4.5,<4.9
|
||||
|
||||
@ -26,7 +26,6 @@ import pymongo
|
||||
from bson import CodecOptions
|
||||
from bson.binary import JAVA_LEGACY
|
||||
from pymongo import ReadPreference, WriteConcern
|
||||
from pymongo.encryption import Algorithm, QueryType
|
||||
from pymongo.errors import BulkWriteError, DuplicateKeyError, OperationFailure
|
||||
from pymongo.read_concern import ReadConcern
|
||||
from pymongo.read_preferences import Secondary
|
||||
@ -304,7 +303,7 @@ class TestAsyncIOCollection(AsyncIOTestCase):
|
||||
insert_payload = await client_encryption.encrypt(
|
||||
float(i),
|
||||
key_id=data_key,
|
||||
algorithm=Algorithm.RANGEPREVIEW,
|
||||
algorithm="range",
|
||||
contention_factor=0,
|
||||
range_opts=range_opts,
|
||||
)
|
||||
@ -323,8 +322,8 @@ class TestAsyncIOCollection(AsyncIOTestCase):
|
||||
]
|
||||
},
|
||||
key_id=data_key,
|
||||
algorithm=Algorithm.RANGEPREVIEW,
|
||||
query_type=QueryType.RANGEPREVIEW,
|
||||
algorithm="range",
|
||||
query_type="range",
|
||||
contention_factor=0,
|
||||
range_opts=range_opts,
|
||||
)
|
||||
|
||||
@ -25,7 +25,6 @@ import pymongo.errors
|
||||
from bson import CodecOptions
|
||||
from bson.binary import JAVA_LEGACY
|
||||
from pymongo import ReadPreference, WriteConcern
|
||||
from pymongo.encryption import Algorithm, QueryType
|
||||
from pymongo.errors import BulkWriteError, DuplicateKeyError, OperationFailure
|
||||
from pymongo.read_concern import ReadConcern
|
||||
from pymongo.read_preferences import Secondary
|
||||
@ -306,7 +305,7 @@ class MotorCollectionTest(MotorTest):
|
||||
insert_payload = await client_encryption.encrypt(
|
||||
float(i),
|
||||
key_id=data_key,
|
||||
algorithm=Algorithm.RANGEPREVIEW,
|
||||
algorithm="range",
|
||||
contention_factor=0,
|
||||
range_opts=range_opts,
|
||||
)
|
||||
@ -325,8 +324,8 @@ class MotorCollectionTest(MotorTest):
|
||||
]
|
||||
},
|
||||
key_id=data_key,
|
||||
algorithm=Algorithm.RANGEPREVIEW,
|
||||
query_type=QueryType.RANGEPREVIEW,
|
||||
algorithm="range",
|
||||
query_type="range",
|
||||
contention_factor=0,
|
||||
range_opts=range_opts,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user