From 59ce93660699cf5777bcd0e77821e74eb33f1636 Mon Sep 17 00:00:00 2001 From: rustagir Date: Wed, 1 Nov 2023 16:43:28 -0400 Subject: [PATCH 1/3] DOCSP-33756: add back compat for pymongo --- .../language-compatibility-table-python.rst | 16 +++++++++++++++- source/pymongo.txt | 5 +++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/source/includes/language-compatibility-table-python.rst b/source/includes/language-compatibility-table-python.rst index 9b355ffa1..0ab145616 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 @@ -69,4 +72,15 @@ .. [#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. \ No newline at end of file +.. [#three-six-compat] Pymongo 4.1 requires Python 3.6.2 or later. + +Python 2 Compatibility +`````````````````````` + +.. list-table:: + :header-rows: 1 + :stub-columns: 1 + :class: compatibility-large + + * - PyMongo Driver Version + - Python 3.12 \ No newline at end of file diff --git a/source/pymongo.txt b/source/pymongo.txt index f008455ed..e1faf3f1e 100644 --- a/source/pymongo.txt +++ b/source/pymongo.txt @@ -142,6 +142,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 ~~~~~~~~~~~~~~~~~~~~~ From 318986c8e4f8414906437c65c5cc0f44f6c4aa1a Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 9 Nov 2023 10:15:17 -0500 Subject: [PATCH 2/3] add back versions --- .../language-compatibility-table-python.rst | 423 +++++++++++++++++- 1 file changed, 422 insertions(+), 1 deletion(-) diff --git a/source/includes/language-compatibility-table-python.rst b/source/includes/language-compatibility-table-python.rst index 35e6e6560..74a252e5b 100644 --- a/source/includes/language-compatibility-table-python.rst +++ b/source/includes/language-compatibility-table-python.rst @@ -14,6 +14,12 @@ Python 3 Compatibility - 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 - ✓ @@ -23,6 +29,12 @@ Python 3 Compatibility - ✓ - ✓ - + - + - + - + - + - + - * - 4.5 - ✓ @@ -32,6 +44,12 @@ Python 3 Compatibility - ✓ - ✓ - + - + - + - + - + - + - * - 4.4 - @@ -41,6 +59,12 @@ Python 3 Compatibility - ✓ - ✓ - + - + - + - + - + - + - * - 4.3 - @@ -50,6 +74,12 @@ Python 3 Compatibility - ✓ - ✓ - + - + - + - + - + - + - * - 4.2 - @@ -59,6 +89,12 @@ Python 3 Compatibility - ✓ - ✓ - + - + - + - + - + - + - * - 4.1 - @@ -68,6 +104,12 @@ Python 3 Compatibility - ✓ - ✓ - ✓ [#three-six-compat]_ + - + - + - + - + - + - * - 4.0 - @@ -77,12 +119,277 @@ Python 3 Compatibility - ✓ - ✓ - ✓ + - + - + - + - + - + - + + * - 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 `````````````````````` @@ -92,4 +399,118 @@ Python 2 Compatibility :class: compatibility-large * - PyMongo Driver Version - - Python 3.12 + - 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. From 4e45f2debdebaeb918153cddee613314b92badf9 Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 9 Nov 2023 10:25:19 -0500 Subject: [PATCH 3/3] add back versions to mongodb --- .../language-compatibility-table-python.rst | 5 +- .../mongodb-compatibility-table-python.rst | 227 ++++++++++++++++++ source/pymongo.txt | 7 +- 3 files changed, 232 insertions(+), 7 deletions(-) diff --git a/source/includes/language-compatibility-table-python.rst b/source/includes/language-compatibility-table-python.rst index 74a252e5b..811b73b27 100644 --- a/source/includes/language-compatibility-table-python.rst +++ b/source/includes/language-compatibility-table-python.rst @@ -512,5 +512,6 @@ Python 2 Compatibility .. note:: - - Jython 2.5 is a Python 2.5-compatible alternative interpreter. - - PyPy is a Python 2.7-compatible alternative interpreter. + 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 e1faf3f1e..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 ------------