Skip to content

Commit df18ab2

Browse files
committed
PYTHON-6138 Address review: raise remaining 3.10 pins, drop stale boto3 constraint
1 parent f808feb commit df18ab2

6 files changed

Lines changed: 14 additions & 23 deletions

File tree

‎.evergreen/generated_configs/tasks.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,13 +2725,13 @@ tasks:
27252725
vars:
27262726
VERSION: v8.0-perf
27272727
SSL: ssl
2728-
UV_PYTHON: 3.10.11
2728+
UV_PYTHON: 3.11.9
27292729
UV_PYTHON_PREFERENCE: only-managed
27302730
- func: run tests
27312731
vars:
27322732
TEST_NAME: perf
27332733
SUB_TEST_NAME: sync
2734-
UV_PYTHON: 3.10.11
2734+
UV_PYTHON: 3.11.9
27352735
UV_PYTHON_PREFERENCE: only-managed
27362736
- func: attach benchmark test results
27372737
- func: send dashboard data
@@ -2742,13 +2742,13 @@ tasks:
27422742
vars:
27432743
VERSION: v8.0-perf
27442744
SSL: ssl
2745-
UV_PYTHON: 3.10.11
2745+
UV_PYTHON: 3.11.9
27462746
UV_PYTHON_PREFERENCE: only-managed
27472747
- func: run tests
27482748
vars:
27492749
TEST_NAME: perf
27502750
SUB_TEST_NAME: async
2751-
UV_PYTHON: 3.10.11
2751+
UV_PYTHON: 3.11.9
27522752
UV_PYTHON_PREFERENCE: only-managed
27532753
- func: attach benchmark test results
27542754
- func: send dashboard data
@@ -2759,13 +2759,13 @@ tasks:
27592759
vars:
27602760
VERSION: v8.0-perf
27612761
SSL: nossl
2762-
UV_PYTHON: 3.10.11
2762+
UV_PYTHON: 3.11.9
27632763
UV_PYTHON_PREFERENCE: only-managed
27642764
- func: run tests
27652765
vars:
27662766
TEST_NAME: perf
27672767
SUB_TEST_NAME: sync
2768-
UV_PYTHON: 3.10.11
2768+
UV_PYTHON: 3.11.9
27692769
UV_PYTHON_PREFERENCE: only-managed
27702770
- func: attach benchmark test results
27712771
- func: send dashboard data
@@ -2776,13 +2776,13 @@ tasks:
27762776
vars:
27772777
VERSION: v8.0-perf
27782778
SSL: nossl
2779-
UV_PYTHON: 3.10.11
2779+
UV_PYTHON: 3.11.9
27802780
UV_PYTHON_PREFERENCE: only-managed
27812781
- func: run tests
27822782
vars:
27832783
TEST_NAME: perf
27842784
SUB_TEST_NAME: async
2785-
UV_PYTHON: 3.10.11
2785+
UV_PYTHON: 3.11.9
27862786
UV_PYTHON_PREFERENCE: only-managed
27872787
- func: attach benchmark test results
27882788
- func: send dashboard data

‎.evergreen/scripts/setup-uv-python.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Choose the Python that uv uses, and make sure uv can provide it.
33
#
44
# Input:
5-
# UV_PYTHON - a version ("3.10", "3.14t"), an implementation ("pypy3.11"),
5+
# UV_PYTHON - a version ("3.11", "3.14t"), an implementation ("pypy3.11"),
66
# or an interpreter path ("/usr/bin/python3.11").
77
#
88
# Exports:
@@ -11,7 +11,7 @@
1111
# UV_PYTHON_PREFERENCE - "system" so the toolchain wins over managed installs.
1212
# A preference set by the task is left alone.
1313
# UV_PYTHON - the Python interpreter uv uses; defaults to CPython
14-
# 3.10 when the task does not set one.
14+
# 3.11 when the task does not set one.
1515
set -euo pipefail
1616

1717
HERE=$(dirname "${BASH_SOURCE:-$0}")
@@ -46,9 +46,9 @@ fi
4646
# Default to a known-good Python so behavior is deterministic when a task does
4747
# not pin one. Selecting the uv binary is separate and driven by the required
4848
# uv version in pyproject.toml.
49-
export UV_PYTHON="${UV_PYTHON:-3.10}"
49+
export UV_PYTHON="${UV_PYTHON:-3.11}"
5050

51-
# Print the Python toolchain bin dir for a version like "3.10" or "3.14t".
51+
# Print the Python toolchain bin dir for a version like "3.11" or "3.14t".
5252
function _toolchain_dir() {
5353
local version="$1" dir
5454
# Only plain CPython versions live in the toolchain.

‎.evergreen/scripts/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Distro:
8686
EXTRA_TESTS = ["aws_lambda", "doctest"]
8787

8888
# The managed Python version used for perf tests (PYTHON-6135).
89-
PERF_PYTHON_VERSION = "3.10.11"
89+
PERF_PYTHON_VERSION = "3.11.9"
9090

9191
# Tests that do not use run-mongodb directly.
9292
NO_RUN_ORCHESTRATION = [

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ be of interest or that has already been addressed.
1616

1717
## Supported Interpreters
1818

19-
PyMongo supports CPython 3.9+ and PyPy3.9+. Language features not
19+
PyMongo supports CPython 3.11+ and PyPy 3.11+. Language features not
2020
supported by all interpreters can not be used.
2121

2222
## Style Guide

‎pyproject.toml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ required-version = "==0.12.12"
5454
# Skip dependency releases newer than 7 days. Defining it here keeps every uv
5555
# invocation on the same cutoff.
5656
exclude-newer = "7 days"
57-
# boto3 dropped Python 3.9 support in 1.43, so the universal lock forks at
58-
# 3.10. Without a floor the pre-3.10 fork back-solves to boto3 1.7.84 (2018),
59-
# whose vendored six and invalid escape sequences break test collection. No
60-
# AWS task runs on pre-3.10 interpreters; this keeps both forks on current
61-
# releases.
62-
constraint-dependencies = ["boto3>=1.34"]
6357

6458
[dependency-groups]
6559
dev = []

‎uv.lock‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)