PYTHON-4529 Require pymongocrypt>=1.10 (#1714)

This commit is contained in:
Shane Harvey 2024-06-27 11:25:38 -07:00 committed by GitHub
parent be448e0dae
commit 5c7bc15ca5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 3 deletions

View File

@ -7,6 +7,7 @@ Changes in Version 4.9.0
PyMongo 4.9 brings a number of improvements including:
- A new asynchronous API with full asyncio support.
- pymongocrypt>=1.10 is now required for :ref:`In-Use Encryption` support.
Issues Resolved
...............

View File

@ -574,7 +574,7 @@ class ClientEncryption(Generic[_DocumentType]):
raise ConfigurationError(
"client-side field level encryption requires the pymongocrypt "
"library: install a compatible version with: "
"python -m pip install 'pymongo[encryption]'"
"python -m pip install --upgrade 'pymongo[encryption]'"
)
if not isinstance(codec_options, CodecOptions):

View File

@ -20,6 +20,9 @@ from typing import TYPE_CHECKING, Any, Mapping, Optional
try:
import pymongocrypt # type:ignore[import] # noqa: F401
# Check for pymongocrypt>=1.10.
from pymongocrypt import synchronous as _ # noqa: F401
_HAVE_PYMONGOCRYPT = True
except ImportError:
_HAVE_PYMONGOCRYPT = False

View File

@ -572,7 +572,7 @@ class ClientEncryption(Generic[_DocumentType]):
raise ConfigurationError(
"client-side field level encryption requires the pymongocrypt "
"library: install a compatible version with: "
"python -m pip install 'pymongo[encryption]'"
"python -m pip install --upgrade 'pymongo[encryption]'"
)
if not isinstance(codec_options, CodecOptions):

View File

@ -1,3 +1,3 @@
pymongo-auth-aws>=1.1.0,<2.0.0
pymongocrypt>=1.6.0,<2.0.0
pymongocrypt>=1.10.0,<2.0.0
certifi;os.name=='nt' or sys_platform=='darwin'