Compare commits

...

3 Commits

Author SHA1 Message Date
mongodb-dbx-release-bot[bot]
d86b1ad140
BUMP 3.5.2
Signed-off-by: mongodb-dbx-release-bot[bot] <167856002+mongodb-dbx-release-bot[bot]@users.noreply.github.com>
2024-09-18 19:48:46 +00:00
Shane Harvey
cbe3ca191f
MOTOR-1368 Cap PyMongo dependency to <4.9 (#309) 2024-09-18 12:25:03 -07:00
Shane Harvey
822e0240ea BUMP 3.5.2.dev0 2024-09-18 11:17:37 -07:00
5 changed files with 12 additions and 10 deletions

View File

@ -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]]``.

View File

@ -16,7 +16,7 @@
import re
from typing import List, Tuple, Union
__version__ = "3.5.1"
__version__ = "3.5.2"
def get_version_tuple(version: str) -> Tuple[Union[int, str], ...]:

View File

@ -1 +1 @@
pymongo>=4.5,<5
pymongo>=4.5,<4.9

View File

@ -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,
)

View File

@ -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,
)