From ae9027abecd53ff077bca6064f0b1f35fe1d673a Mon Sep 17 00:00:00 2001 From: Prashant Mital Date: Wed, 31 Mar 2021 12:18:15 -0500 Subject: [PATCH 1/3] Update changelog --- doc/changelog.rst | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index e34f826be8..74635f2249 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -4,18 +4,55 @@ Changelog Changes in Version 3.12.0 ------------------------- -.. warning:: Support for Python 2.7, 3.4 and 3.5 is deprecated. Those Python - versions will not be supported by PyMongo 4. +.. warning:: PyMongo 3.12.0 deprecates support for Python 2.7, 3.4 and 3.5. + These Python versions will not be supported by PyMongo 4. - PyMongoCrypt 1.1.0 or later is now required for client side field level encryption support. -- Added :attr:`pymongo.mongo_client.MongoClient.topology_description`. - Notable improvements .................... - Support for MongoDB Versioned API, see :class:`~pymongo.server_api.ServerApi`. +- Added :attr:`pymongo.mongo_client.MongoClient.topology_description`. +- Added hash support to :class:`~pymongo.mongo_client.MongoClient`, + :class:`~pymongo.database.Database` and + :class:`~pymongo.collection.Collection` (`PYTHON-2466`_). + +Bug fixes +......... + +- Fixed a bug that could cause the driver to deadlock during automatic + client side field level encryption (`PYTHON-2472`_). +- Fixed a bug that prevented PyMongo from retrying writes after + a ``writeConcernError`` on MongoDB 4.4+ (`PYTHON-2452`_). +- Fixed a memory leak caused by failing SDAM monitor checks on Python 3 (`PYTHON-2433`_). +- Fixed a regression that changed the string representation of + :exc:`~pymongo.errors.BulkWriteError` (`PYTHON-2438`_). +- Fixed a bug that made it impossible to use + :meth:`bson.codec_options.CodecOptions.with_options` and + :meth:`~bson.json_util.JSONOptions.with_options` on some early versions of + Python 3.4 and Python 3.5 due to a bug in the standard library implementation + of :meth:`collections.namedtuple._asdict` (`PYTHON-2440`_). +- Fixed a bug that resulted in a :exc:`TypeError` exception when a PyOpenSSL + socket was configured with a timeout of ``None`` (`PYTHON-2443`_). +- Improved the error message returned by + :meth:`~pymongo.collection.Collection.insert_many` when supplied with an + argument of incorrect type (`PYTHON-1690`_). + +Deprecations +............ + +- Deprecated support for Python 2.7, 3.4 and 3.5. + +.. _PYTHON-2472: https://jira.mongodb.org/browse/PYTHON-2472 +.. _PYTHON-2466: https://jira.mongodb.org/browse/PYTHON-2466 +.. _PYTHON-2433: https://jira.mongodb.org/browse/PYTHON-2433 +.. _PYTHON-2438: https://jira.mongodb.org/browse/PYTHON-2438 +.. _PYTHON-2440: https://jira.mongodb.org/browse/PYTHON-2440 +.. _PYTHON-2443: https://jira.mongodb.org/browse/PYTHON-2443 +.. _PYTHON-2452: https://jira.mongodb.org/browse/PYTHON-2452 +.. _PYTHON-1690: https://jira.mongodb.org/browse/PYTHON-1690 Issues Resolved ............... From b5e50ffb5c896e48d4dad60418985e9f6c1c975c Mon Sep 17 00:00:00 2001 From: Prashant Mital Date: Wed, 31 Mar 2021 12:49:34 -0500 Subject: [PATCH 2/3] BUMP 3.12.0b0 --- doc/changelog.rst | 4 ++-- doc/installation.rst | 2 +- pymongo/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 74635f2249..4c8255ac26 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,8 +1,8 @@ Changelog ========= -Changes in Version 3.12.0 -------------------------- +Changes in Version 3.12.0b0 +--------------------------- .. warning:: PyMongo 3.12.0 deprecates support for Python 2.7, 3.4 and 3.5. These Python versions will not be supported by PyMongo 4. diff --git a/doc/installation.rst b/doc/installation.rst index 974eb4afef..096c9b5bf8 100644 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -278,4 +278,4 @@ but can be found on the `GitHub tags page `_. They can be installed by passing the full URL for the tag to pip:: - $ python -m pip install https://github.com/mongodb/mongo-python-driver/archive/3.11.0rc0.tar.gz + $ python -m pip install https://github.com/mongodb/mongo-python-driver/archive/3.12.0b0.tar.gz diff --git a/pymongo/__init__.py b/pymongo/__init__.py index 71e5da6947..e1fe385662 100644 --- a/pymongo/__init__.py +++ b/pymongo/__init__.py @@ -74,7 +74,7 @@ ALL = 2 """Profile all operations.""" -version_tuple = (3, 12, 0, 'dev0') +version_tuple = (3, 12, 0, 'b0') def get_version_string(): if isinstance(version_tuple[-1], str): diff --git a/setup.py b/setup.py index 24eb3a139b..3006e520f2 100755 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ except ImportError: _HAVE_SPHINX = False -version = "3.12.0.dev0" +version = "3.12.0b0" f = open("README.rst") try: From 8d3878aa32f37d0942157a55dffe11808174b7ee Mon Sep 17 00:00:00 2001 From: Prashant Mital Date: Wed, 31 Mar 2021 13:12:48 -0500 Subject: [PATCH 3/3] graft changelog entries for 3.11.2 and 3.11.3 --- doc/changelog.rst | 71 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 49 insertions(+), 22 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 4c8255ac26..8d904466c1 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -18,14 +18,57 @@ Notable improvements - Added hash support to :class:`~pymongo.mongo_client.MongoClient`, :class:`~pymongo.database.Database` and :class:`~pymongo.collection.Collection` (`PYTHON-2466`_). +- Improved the error message returned by + :meth:`~pymongo.collection.Collection.insert_many` when supplied with an + argument of incorrect type (`PYTHON-1690`_). Bug fixes ......... - Fixed a bug that could cause the driver to deadlock during automatic client side field level encryption (`PYTHON-2472`_). -- Fixed a bug that prevented PyMongo from retrying writes after - a ``writeConcernError`` on MongoDB 4.4+ (`PYTHON-2452`_). + +Deprecations +............ + +- Deprecated support for Python 2.7, 3.4 and 3.5. + +.. _PYTHON-2466: https://jira.mongodb.org/browse/PYTHON-2466 +.. _PYTHON-1690: https://jira.mongodb.org/browse/PYTHON-1690 +.. _PYTHON-2472: https://jira.mongodb.org/browse/PYTHON-2472 + +Issues Resolved +............... + +See the `PyMongo 3.12.0 release notes in JIRA`_ for the list of resolved issues +in this release. + +.. _PyMongo 3.12.0 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=29594 + + +Changes in Version 3.11.3 +------------------------- + +Issues Resolved +............... + +Version 3.11.3 fixes a bug that prevented PyMongo from retrying writes after +a ``writeConcernError`` on MongoDB 4.4+ (`PYTHON-2452`_) + +See the `PyMongo 3.11.3 release notes in JIRA`_ for the list of resolved issues +in this release. + +.. _PYTHON-2452: https://jira.mongodb.org/browse/PYTHON-2452 +.. _PyMongo 3.11.3 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=30355 + +Changes in Version 3.11.2 +------------------------- + +Issues Resolved +............... + +Version 3.11.2 includes a number of bugfixes. Highlights include: + - Fixed a memory leak caused by failing SDAM monitor checks on Python 3 (`PYTHON-2433`_). - Fixed a regression that changed the string representation of :exc:`~pymongo.errors.BulkWriteError` (`PYTHON-2438`_). @@ -36,32 +79,15 @@ Bug fixes of :meth:`collections.namedtuple._asdict` (`PYTHON-2440`_). - Fixed a bug that resulted in a :exc:`TypeError` exception when a PyOpenSSL socket was configured with a timeout of ``None`` (`PYTHON-2443`_). -- Improved the error message returned by - :meth:`~pymongo.collection.Collection.insert_many` when supplied with an - argument of incorrect type (`PYTHON-1690`_). - -Deprecations -............ -- Deprecated support for Python 2.7, 3.4 and 3.5. +See the `PyMongo 3.11.2 release notes in JIRA`_ for the list of resolved issues +in this release. -.. _PYTHON-2472: https://jira.mongodb.org/browse/PYTHON-2472 -.. _PYTHON-2466: https://jira.mongodb.org/browse/PYTHON-2466 .. _PYTHON-2433: https://jira.mongodb.org/browse/PYTHON-2433 .. _PYTHON-2438: https://jira.mongodb.org/browse/PYTHON-2438 .. _PYTHON-2440: https://jira.mongodb.org/browse/PYTHON-2440 .. _PYTHON-2443: https://jira.mongodb.org/browse/PYTHON-2443 -.. _PYTHON-2452: https://jira.mongodb.org/browse/PYTHON-2452 -.. _PYTHON-1690: https://jira.mongodb.org/browse/PYTHON-1690 - -Issues Resolved -............... - -See the `PyMongo 3.12 release notes in JIRA`_ for the list of resolved issues -in this release. - -.. _PyMongo 3.12 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=29594 - +.. _PyMongo 3.11.2 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=30315 Changes in Version 3.11.1 ------------------------- @@ -97,6 +123,7 @@ in this release. .. _PyMongo 3.11.1 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=29997 + Changes in Version 3.11.0 -------------------------