From 49eb1e337a71a7536be686fb2089c785af47eed1 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 20 Feb 2024 12:00:53 -0600 Subject: [PATCH 1/2] PYTHON-4219 Prep for 4.6.2 Release --- doc/changelog.rst | 7 +++++++ pymongo/_version.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 4a2a634f41..77977c2ba0 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,6 +1,13 @@ Changelog ========= +Changes in Version 4.6.2 +------------------------ + +PyMongo 4.6.2 fixes the following bug: + +- Python 3.12 thread error while using ``MongoClient()`` function. + Changes in Version 4.6.1 ------------------------ diff --git a/pymongo/_version.py b/pymongo/_version.py index bb198adf7f..d32177774b 100644 --- a/pymongo/_version.py +++ b/pymongo/_version.py @@ -17,7 +17,7 @@ from typing import Tuple, Union -version_tuple: Tuple[Union[int, str], ...] = (4, 6, 2, ".dev0") +version_tuple: Tuple[Union[int, str], ...] = (4, 6, 2, "") def get_version_string() -> str: From 3b622c05a1450713ecddc65dd5dee9350fd461bc Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 20 Feb 2024 13:43:17 -0600 Subject: [PATCH 2/2] address review --- doc/changelog.rst | 3 ++- pymongo/_version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 77977c2ba0..d823828eff 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -6,7 +6,8 @@ Changes in Version 4.6.2 PyMongo 4.6.2 fixes the following bug: -- Python 3.12 thread error while using ``MongoClient()`` function. +- Fixed a bug appearing in Python 3.12 where "RuntimeError: can't create new thread at interpreter shutdown" + could be written to stderr when a MongoClient's thread starts as the python interpreter is shutting down. Changes in Version 4.6.1 ------------------------ diff --git a/pymongo/_version.py b/pymongo/_version.py index d32177774b..63e3b1d6ff 100644 --- a/pymongo/_version.py +++ b/pymongo/_version.py @@ -17,7 +17,7 @@ from typing import Tuple, Union -version_tuple: Tuple[Union[int, str], ...] = (4, 6, 2, "") +version_tuple: Tuple[Union[int, str], ...] = (4, 6, 2) def get_version_string() -> str: