From 96c5e84af5ddfc79a9cce4cbedb66dba0a5fdd3a Mon Sep 17 00:00:00 2001 From: Rea Rustagi <85902999+rustagir@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:35:46 -0500 Subject: [PATCH] DOCSP-33756: add back compat for pymongo (#925) * DOCSP-33756: add back compat for pymongo * add back versions * add back versions to mongodb --- .../language-compatibility-table-python.rst | 436 ++++++++++++++++++ .../mongodb-compatibility-table-python.rst | 227 +++++++++ source/pymongo.txt | 12 +- 3 files changed, 670 insertions(+), 5 deletions(-) diff --git a/source/includes/language-compatibility-table-python.rst b/source/includes/language-compatibility-table-python.rst index c95b9c7f1..811b73b27 100644 --- a/source/includes/language-compatibility-table-python.rst +++ b/source/includes/language-compatibility-table-python.rst @@ -1,3 +1,6 @@ +Python 3 Compatibility +`````````````````````` + .. list-table:: :header-rows: 1 :stub-columns: 1 @@ -11,6 +14,12 @@ - Python 3.8 - Python 3.7 - Python 3.6 + - Python 3.5 + - Python 3.4 + - Python 3.3 + - PyPy3 + - Python 3.2 + - Python 3.1 * - 4.6 - ✓ @@ -20,6 +29,12 @@ - ✓ - ✓ - + - + - + - + - + - + - * - 4.5 - ✓ @@ -29,6 +44,12 @@ - ✓ - ✓ - + - + - + - + - + - + - * - 4.4 - @@ -38,6 +59,12 @@ - ✓ - ✓ - + - + - + - + - + - + - * - 4.3 - @@ -47,6 +74,12 @@ - ✓ - ✓ - + - + - + - + - + - + - * - 4.2 - @@ -56,6 +89,12 @@ - ✓ - ✓ - + - + - + - + - + - + - * - 4.1 - @@ -65,6 +104,12 @@ - ✓ - ✓ - ✓ [#three-six-compat]_ + - + - + - + - + - + - * - 4.0 - @@ -74,8 +119,399 @@ - ✓ - ✓ - ✓ + - + - + - + - + - + - + + * - 3.13 + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.12 + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.11 + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.10 + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.9 + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.8 + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.7 + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.6 + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - + - ✓ + - + - + + * - 3.5 + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + - + + * - 3.4 + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - + - + + * - 3.3 + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - + - + + * - 3.2 + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + + * - 3.1 + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - + + * - 3.0 + - + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - + + * - 2.9 + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 2.8 + - + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 2.7 + - + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ .. [#ssl-4.0-issue] Versions of Python 3.10 and later are not compatible with TLS/SSL for versions of MongoDB 4.0 and earlier. See the `PyMongo documentation `__ for more information. .. [#three-six-compat] Pymongo 4.1 requires Python 3.6.2 or later. + +.. note:: + + PyPy3 is a Python 3.2-compatible alternative interpreter. + +Python 2 Compatibility +`````````````````````` + +.. list-table:: + :header-rows: 1 + :stub-columns: 1 + :class: compatibility-large + + * - PyMongo Driver Version + - Python 2.7, PyPy + - Python 2.6 + - Python 2.5, Jython 2.5 + - Python 2.4 + + * - 4.0 [#python-2-compat]_ + - + - + - + - + + * - 3.12 + - ✓ + - + - + - + + * - 3.11 + - ✓ + - + - + - + + * - 3.10 + - ✓ + - + - + - + + * - 3.9 + - ✓ + - + - + - + + * - 3.8 + - ✓ + - + - + - + + * - 3.7 + - ✓ + - ✓ + - + - + + + * - 3.6 + - ✓ + - ✓ + - + - + + * - 3.5 + - ✓ + - ✓ + - + - + + * - 3.4 + - ✓ + - ✓ + - + - + + * - 3.3 + - ✓ + - ✓ + - + - + + * - 3.2 + - ✓ + - ✓ + - + - + + * - 3.1 + - ✓ + - ✓ + - + - + + * - 3.0 + - ✓ + - ✓ + - + - + + * - 2.9 + - ✓ + - ✓ + - ✓ + - ✓ + + * - 2.8 + - ✓ + - ✓ + - ✓ + - ✓ + + * - 2.7 + - ✓ + - ✓ + - ✓ + - ✓ + +.. [#python-2-compat] Versions of PyMongo 4.0 and later are not compatible + with Python 2 + +.. note:: + + Jython 2.5 is a Python 2.5-compatible alternative interpreter. + + PyPy is a Python 2.7-compatible alternative interpreter. diff --git a/source/includes/mongodb-compatibility-table-python.rst b/source/includes/mongodb-compatibility-table-python.rst index b5e99193e..fcb42ef50 100644 --- a/source/includes/mongodb-compatibility-table-python.rst +++ b/source/includes/mongodb-compatibility-table-python.rst @@ -30,6 +30,7 @@ - - - + * - 4.5 - ✓ - ✓ @@ -42,6 +43,7 @@ - - - + * - 4.4 - ✓ - ✓ @@ -54,6 +56,7 @@ - - - + * - 4.3 - ⊛ - ✓ @@ -66,6 +69,7 @@ - - - + * - 4.2 - ⊛ - ✓ @@ -78,6 +82,7 @@ - - - + * - 4.1 - ⊛ - ⊛ @@ -90,6 +95,7 @@ - - - + * - 4.0 - ⊛ - ⊛ @@ -102,3 +108,224 @@ - - - + + * - 3.13 + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.12 + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.11 + - ⊛ + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.10 + - ⊛ + - ⊛ + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.9 + - ⊛ + - ⊛ + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.8 + - ⊛ + - ⊛ + - ⊛ + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.7 + - ⊛ + - ⊛ + - ⊛ + - ⊛ + - ⊛ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.6 + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.5 + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.4 + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + - ✓ + + * - 3.3 + - + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + + * - 3.2 + - + - + - + - + - + - + - + - + - ✓ + - ✓ + - ✓ + + * - 3.1 + - + - + - + - + - + - + - + - + - + - ✓ + - ✓ + + * - 3.0 + - + - + - + - + - + - + - + - + - + - ✓ + - ✓ + + * - 2.9 + - + - + - + - + - + - + - + - + - + - ✓ + - ✓ + + * - 2.8 + - + - + - + - + - + - + - + - + - + - ✓ + - ✓ + + * - 2.7 + - + - + - + - + - + - + - + - + - + - + - ✓ diff --git a/source/pymongo.txt b/source/pymongo.txt index f008455ed..e717a5971 100644 --- a/source/pymongo.txt +++ b/source/pymongo.txt @@ -42,16 +42,13 @@ or set up a runnable project by following our tutorial. - `Source Code `__ -.. include:: /includes/university-m220p.rst - -Compatibility -------------- - You can use the PyMongo driver to connect to deployments hosted in the following environments: .. include:: /includes/fact-environments.rst +.. include:: /includes/university-m220p.rst + Installation ------------ @@ -142,6 +139,11 @@ code example and run it. Compatibility ------------- +.. important:: Supported PyMongo and Python Versions + + MongoDB does not support any Python driver versions earlier than v4.0 + or any Python versions earlier than v3.6. + MongoDB Compatibility ~~~~~~~~~~~~~~~~~~~~~