PYTHON-4529 Require pymongocrypt>=1.10 (#1714)
This commit is contained in:
parent
be448e0dae
commit
5c7bc15ca5
@ -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
|
||||
...............
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user