diff --git a/doc/changelog.rst b/doc/changelog.rst index e34f826be8..8d904466c1 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,30 +1,93 @@ Changelog ========= -Changes in Version 3.12.0 -------------------------- +Changes in Version 3.12.0b0 +--------------------------- -.. 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`_). +- 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`_). + +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 release notes in JIRA`_ for the list of resolved issues +See the `PyMongo 3.12.0 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.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`_). +- 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`_). + +See the `PyMongo 3.11.2 release notes in JIRA`_ for the list of resolved issues +in this release. + +.. _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 +.. _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 ------------------------- @@ -60,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 ------------------------- 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: