Skip to content

Commit

Permalink
MOTOR-1127 Document and test support for MongoDB 7.0 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed May 12, 2023
1 parent 6a7c84d commit 3534c33
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 30 deletions.
31 changes: 31 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,33 @@ tasks:
TOPOLOGY: "sharded_cluster"
- func: "run tox"

- name: "test-7.0-standalone"
tags: [ "7.0", "standalone" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
VERSION: "7.0"
TOPOLOGY: "server"
- func: "run tox"

- name: "test-7.0-replica_set"
tags: [ "7.0", "replica_set" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
VERSION: "7.0"
TOPOLOGY: "replica_set"
- func: "run tox"

- name: "test-7.0-sharded_cluster"
tags: [ "7.0", "sharded_cluster" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
VERSION: "7.0"
TOPOLOGY: "sharded_cluster"
- func: "run tox"

- name: "test-latest-standalone"
tags: ["latest", "standalone"]
commands:
Expand Down Expand Up @@ -952,6 +979,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".7.0"
- ".6.0"
- ".5.0"
- ".4.4"
Expand All @@ -968,6 +996,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".7.0"
- ".6.0"
- ".5.0"
- ".4.4"
Expand All @@ -981,6 +1010,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".7.0"
- ".6.0"
- ".5.0"
- ".4.4"
Expand All @@ -997,6 +1027,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".7.0"
- ".6.0"

- matrix_name: "enterprise-auth"
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog
Motor 3.2.0
-----------

- Add support for MongoDB 7.0.
- Motor 3.2 adds support for Queryable Encryption helpers :meth:`~motor.core.MotorClientEncryption.create_encrypted_collection` and
:meth:`~motor.core.MotorClientEncryption.encrypt_expression`, which are part of the Queryable Encryption beta.
Backwards-breaking changes may be made before the final release.
Expand Down
68 changes: 38 additions & 30 deletions doc/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Requirements
The current version of Motor requires:

* CPython 3.7 and later.
* PyMongo_ 4.2 and later.
* PyMongo_ 4.4 and later.

Motor can integrate with either Tornado or asyncio.

Expand Down Expand Up @@ -51,39 +51,43 @@ Motor and PyMongo
+-------------------+-----------------+
| 3.1 | 4.2+ |
+-------------------+-----------------+
| 3.2 | 4.4+ |
+-------------------+-----------------+

Motor and MongoDB
`````````````````

+---------------------------------------------------------------------------------------+
| MongoDB Version |
+=====================+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+
| | 2.2 | 2.4 | 2.6 | 3.0 | 3.2 | 3.4 | 3.6 | 4.0 | 4.2 | 4.4 | 5.0 |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Motor Version | 1.0 | Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 1.1 | Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 1.2 |**N**|**N**| Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 1.3 |**N**|**N**| Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.0 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y |**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.1 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y |**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.2 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.3 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.4 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.5 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y | Y |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 3.0 |**N**|**N**|**N**|**N**|**N**|**N**| Y | Y | Y | Y | Y |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 3.1 |**N**|**N**|**N**|**N**|**N**|**N**| Y | Y | Y | Y | Y |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
+---------------------------------------------------------------------------------------------------+
| MongoDB Version |
+=====================+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+=====+
| | 2.2 | 2.4 | 2.6 | 3.0 | 3.2 | 3.4 | 3.6 | 4.0 | 4.2 | 4.4 | 5.0 | 6.0 | 7.0 |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Motor Version | 1.0 | Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 1.1 | Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 1.2 |**N**|**N**| Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 1.3 |**N**|**N**| Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.0 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.1 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.2 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.3 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.4 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |**N**|**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 2.5 |**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y | Y |**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 3.0 |**N**|**N**|**N**|**N**|**N**|**N**| Y | Y | Y | Y | Y |**N**|**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 3.1 |**N**|**N**|**N**|**N**|**N**|**N**| Y | Y | Y | Y | Y | Y |**N**|
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| | 3.2 |**N**|**N**|**N**|**N**|**N**|**N**| Y | Y | Y | Y | Y | Y | Y |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+

There is no relationship between PyMongo and MongoDB version numbers, although
the numbers happen to be close or equal in recent releases of PyMongo and MongoDB.
Expand Down Expand Up @@ -124,6 +128,8 @@ known to be incompatible, or have not been tested together.
+---------------+-----+-----+-----+-----+-----+
| | 3.1 |**N**|**N**|**N**| Y |
+---------------+-----+-----+-----+-----+-----+
| | 3.2 |**N**|**N**|**N**| Y |
+---------------+-----+-----+-----+-----+-----+

Motor and Python
````````````````
Expand Down Expand Up @@ -172,6 +178,8 @@ Motor 3.1.1 added support for Python 3.11.
+---------------+-----+-----+-----+-----+-------+-------+-----+-----+-----+-----+-----+-----+
| | 3.1 |**N**|**N**|**N**|**N** |**N** |**N**| Y | Y | Y | Y |**Y**|
+---------------+-----+-----+-----+-----+-------+-------+-----+-----+-----+-----+-----+-----+
| | 3.2 |**N**|**N**|**N**|**N** |**N** |**N**| Y | Y | Y | Y |**Y**|
+---------------+-----+-----+-----+-----+-------+-------+-----+-----+-----+-----+-----+-----+

Not Supported
-------------
Expand Down

0 comments on commit 3534c33

Please sign in to comment.