Skip to content

Commit 5c7bc15

Browse files
authored
PYTHON-4529 Require pymongocrypt>=1.10 (mongodb#1714)
1 parent be448e0 commit 5c7bc15

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

doc/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Changes in Version 4.9.0
77
PyMongo 4.9 brings a number of improvements including:
88

99
- A new asynchronous API with full asyncio support.
10+
- pymongocrypt>=1.10 is now required for :ref:`In-Use Encryption` support.
1011

1112
Issues Resolved
1213
...............

pymongo/asynchronous/encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def __init__(
574574
raise ConfigurationError(
575575
"client-side field level encryption requires the pymongocrypt "
576576
"library: install a compatible version with: "
577-
"python -m pip install 'pymongo[encryption]'"
577+
"python -m pip install --upgrade 'pymongo[encryption]'"
578578
)
579579

580580
if not isinstance(codec_options, CodecOptions):

pymongo/encryption_options.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
try:
2121
import pymongocrypt # type:ignore[import] # noqa: F401
2222

23+
# Check for pymongocrypt>=1.10.
24+
from pymongocrypt import synchronous as _ # noqa: F401
25+
2326
_HAVE_PYMONGOCRYPT = True
2427
except ImportError:
2528
_HAVE_PYMONGOCRYPT = False

pymongo/synchronous/encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def __init__(
572572
raise ConfigurationError(
573573
"client-side field level encryption requires the pymongocrypt "
574574
"library: install a compatible version with: "
575-
"python -m pip install 'pymongo[encryption]'"
575+
"python -m pip install --upgrade 'pymongo[encryption]'"
576576
)
577577

578578
if not isinstance(codec_options, CodecOptions):

requirements/encryption.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pymongo-auth-aws>=1.1.0,<2.0.0
2-
pymongocrypt>=1.6.0,<2.0.0
2+
pymongocrypt>=1.10.0,<2.0.0
33
certifi;os.name=='nt' or sys_platform=='darwin'

0 commit comments

Comments
 (0)