Skip to content

fix test-python-integ on distros with too-old Python - #1246

Merged
blink1073 merged 1 commit into
mongodb:masterfrom
kevinAlbs:fix-python-integ-311
Oct 15, 2026
Merged

blink1073 merged 1 commit into
mongodb:masterfrom
kevinAlbs:fix-python-integ-311

Conversation

@kevinAlbs

@kevinAlbs kevinAlbs commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

test-python-integ is failing (example):

ERROR: Package 'pymongo' requires a different Python: 3.10.4 not in '>=3.11'

PyMongo master dropped Python 3.9/3.10 support (PYTHON-6138), but the newest interpreter on this distro is the MongoDB toolchain Python 3.10 (/opt/mongodbtoolchain/v5/bin/python3), so pip install -e '.[test,encryption]' fails before any test runs.

Provision a uv-managed Python 3.13 for the pymongocrypt venv when the selected interpreter is older than 3.11.

Evergreen patch: https://spruce.corp.mongodb.com/version/6acfe90843e7070007b8b9fd

… is too old

PyMongo master requires Python >=3.11 (PYTHON-6138), but the newest
interpreter on some Evergreen distros is the MongoDB toolchain Python
3.10 (e.g. rhel-82-arm64), so 'pip install -e ".[test,encryption]"'
fails at install time. Provision a uv-managed Python 3.13 for the
pymongocrypt venv when the selected interpreter is older than 3.11.

Complements mongodb#1242 (PYTHON-6139), which drops 3.9/3.10 from the
pymongocrypt support matrix but does not add an interpreter source for
distros whose toolchain tops out at 3.10.
@kevinAlbs kevinAlbs changed the title test-python-integ: provision Python 3.13 via uv when toolchain Python is too old fix test-python-integ on distros with too-old Python Oct 15, 2026
@kevinAlbs
kevinAlbs marked this pull request as ready for review October 15, 2026 12:17
@kevinAlbs
kevinAlbs requested a review from a team as a code owner October 15, 2026 12:17
@kevinAlbs
kevinAlbs requested a review from blink1073 October 15, 2026 12:17

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! I'm merging so we can proceed with the next release

@blink1073
blink1073 merged commit 30d93b5 into mongodb:master Oct 15, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants