Skip to content

Commit d4a10a9

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver into refactor-scripts
2 parents be49d53 + 6d91859 commit d4a10a9

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ buildvariants:
99
batchtime: 1440
1010
expansions:
1111
VERSION: latest
12-
PYTHON_BINARY: /usr/bin/python3.11
1312
NO_EXT: "1"
1413
REQUIRE_FIPS: "1"
14+
PYTHON_BINARY: /usr/bin/python3.11
1515
tags: []
1616
- name: other-hosts-rhel8-zseries-latest
1717
tasks:
@@ -22,7 +22,6 @@ buildvariants:
2222
batchtime: 1440
2323
expansions:
2424
VERSION: latest
25-
PYTHON_BINARY: /usr/bin/python3.11
2625
NO_EXT: "1"
2726
tags: []
2827
- name: other-hosts-rhel8-power8-latest
@@ -34,7 +33,6 @@ buildvariants:
3433
batchtime: 1440
3534
expansions:
3635
VERSION: latest
37-
PYTHON_BINARY: /usr/bin/python3.11
3836
NO_EXT: "1"
3937
tags: []
4038
- name: other-hosts-rhel8-arm64-latest
@@ -46,7 +44,6 @@ buildvariants:
4644
batchtime: 1440
4745
expansions:
4846
VERSION: latest
49-
PYTHON_BINARY: /usr/bin/python3.11
5047
NO_EXT: "1"
5148
tags: []
5249
- name: other-hosts-amazon2023-latest
@@ -58,7 +55,6 @@ buildvariants:
5855
batchtime: 1440
5956
expansions:
6057
VERSION: latest
61-
PYTHON_BINARY: /usr/bin/python3.11
6258
NO_EXT: "1"
6359
tags: [pr]
6460

.evergreen/scripts/generate_config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,14 @@ def create_alternative_hosts_variants():
469469

470470
version = "latest"
471471
for host_name in OTHER_HOSTS:
472-
# Use explicit Python 3.11 binary on the host since the default python3 is 3.9.
473-
expansions = dict(VERSION="latest", PYTHON_BINARY="/usr/bin/python3.11")
472+
expansions = dict(VERSION="latest")
474473
handle_c_ext(C_EXTS[0], expansions)
475474
host = HOSTS[host_name]
476475
tags = []
477476
if "fips" in host_name.lower():
478477
expansions["REQUIRE_FIPS"] = "1"
478+
# Use explicit Python 3.11 binary on the host since the default python3 is 3.9.
479+
expansions["PYTHON_BINARY"] = "/usr/bin/python3.11"
479480
if "amazon" in host_name.lower():
480481
tags.append("pr")
481482
variants.append(

doc/changelog.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ PyMongo 4.16 brings a number of changes including:
1717
- Removed support for Eventlet.
1818
Eventlet is actively being sunset by its maintainers and has compatibility issues with PyMongo's dnspython dependency.
1919

20+
Changes in Version 4.15.3 (2025/10/07)
21+
--------------------------------------
22+
23+
Version 4.15.3 is a bug fix release.
24+
25+
- Fixed a memory leak when raising :class:`bson.errors.InvalidDocument` with C extensions.
26+
- Fixed the return type of the :meth:`~pymongo.asynchronous.collection.AsyncCollection.distinct`,
27+
:meth:`~pymongo.synchronous.collection.Collection.distinct`, :meth:`pymongo.asynchronous.cursor.AsyncCursor.distinct`,
28+
and :meth:`pymongo.asynchronous.cursor.AsyncCursor.distinct` methods.
29+
30+
Issues Resolved
31+
...............
32+
33+
See the `PyMongo 4.15.3 release notes in JIRA`_ for the list of resolved issues
34+
in this release.
35+
36+
.. _PyMongo 4.15.3 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=47293
37+
2038
Changes in Version 4.15.2 (2025/10/01)
2139
--------------------------------------
2240

0 commit comments

Comments
 (0)