Repository navigation
PYTHON-6138 Drop Python 3.9 and 3.10 Support - #3104
Draft
aclark4life wants to merge 2 commits into
Draft
aclark4life wants to merge 2 commits into
aclark4life wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Evergreen still defaults and pins some jobs to Python 3.10, which conflicts with the new package requirement.
3 open findings
What changed in this PR
Raises PyMongo’s minimum supported runtime to Python 3.11 and aligns packaging, CI, Evergreen, and documentation.
Changes:
- Sets
requires-pythonto 3.11+ and regenerates dependencies. - Removes Python 3.9/3.10 from CI and distribution jobs.
- Updates Evergreen matrices and release documentation.
| File | Description |
|---|---|
README.md |
Updates supported versions. |
pyproject.toml |
Raises the Python floor and removes classifiers. |
uv.lock |
Regenerates dependencies for Python 3.11+. |
doc/changelog.rst |
Announces dropped runtime support. |
.github/workflows/uv-lock-update.yml |
Uses Python 3.11 for lock updates. |
.github/workflows/test-python.yml |
Updates test jobs to Python 3.11+. |
.github/workflows/sbom.yml |
Uses Python 3.11 for SBOM generation. |
.github/workflows/dist.yml |
Drops 3.9/3.10 wheel assertions. |
.evergreen/scripts/generate_config_utils.py |
Updates Evergreen interpreter matrices. |
.evergreen/generated_configs/tasks.yml |
Regenerates Evergreen tasks. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| ALL_VERSIONS = ["4.4", "5.0", "6.0", "7.0", "8.0", "9.0", "rapid", "latest"] | ||
| CPYTHONS = ["3.10", "3.11", "3.12", "3.13", "3.14t", "3.14", "3.15t", "3.15"] | ||
| CPYTHONS = ["3.11", "3.12", "3.13", "3.14t", "3.14", "3.15t", "3.15"] |
| ## Dependencies | ||
|
|
||
| PyMongo supports CPython 3.9+ and PyPy3.9+. PyPy support is deprecated and will be removed in a future release. | ||
| PyMongo supports CPython 3.11+ and PyPy3.11+. PyPy support is deprecated and will be removed in a future release. |
Comment on lines
+57
to
+58
| # AWS task runs on pre-3.10 interpreters; this keeps both forks on current | ||
| # releases. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


PYTHON-6138
Changes in this PR
requires-pythonto>=3.11.CPYTHONSmatrix and 3.9/PyPy 3.9/PyPy 3.10 fromMIN_SUPPORT_VERSIONS..evergreen/generated_configs/.uv.lock.Test Plan
static,build,test_minimum,test_sdistjobs pass on 3.11.Checklist
Checklist for Author
Checklist for Reviewer