Merged
Conversation
This removes Python 3.9 support across all packages in the repository. Changes include: - Updated pyproject.toml files to require Python 3.10+ - Removed Python 3.9 from CI/CD test matrices - Updated documentation to reflect Python 3.10+ requirement - Removed Python 3.9 classifiers from all packages - Removed importlib_metadata dependency (only needed for Python <3.10) - Updated mypy target version to 3.10 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
CodSpeed Performance ReportMerging #19273 will not alter performanceComparing Summary
|
…t.mock Replace all instances of AsyncMock being imported from prefect.testing.utilities with imports from unittest.mock instead. This change standardizes the mock imports to use the standard library's unittest.mock module rather than re-exporting from prefect.testing.utilities. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Update Dockerfile, documentation, and README files that still referenced Python 3.9 as the minimum version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
desertaxle
commented
Oct 25, 2025
Comment on lines
-74
to
-76
| [tool.uv.sources] | ||
| prefect = { path = "../../../" } | ||
|
|
Member
Author
There was a problem hiding this comment.
ray==2.50.0 switched to using uv to set up execution environments, which doesn't work well with this source configuration. This change will cause the tests to run against the latest release prefect version instead of a dev version.
zzstoatzz
approved these changes
Oct 27, 2025
Collaborator
zzstoatzz
left a comment
There was a problem hiding this comment.
lgtm!
i think there are a few places we can remove <3.10 handling:
- https://github.com/prefecthq/prefect/tree/remove-python-39-support/src/prefect/utilities/compat.py#L8-L23
- https://github.com/prefecthq/prefect/tree/remove-python-39-support/src/prefect/utilities/importtools.py#L43-L46
- https://github.com/prefecthq/prefect/tree/remove-python-39-support/src/prefect/server/database/dependencies.py#L236-L248
zzstoatzz
approved these changes
Oct 27, 2025
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.
Summary
This PR removes Python 3.9 support from all packages in the repository. Python 3.9 is EOL at the end of this month.
Changes
Package Configuration
requires-pythonfrom>=3.9to>=3.10in:pyproject.tomlclient/pyproject.tomlpyproject.tomlfiles (18 packages)importlib_metadatadependency (only needed for Python <3.10)CI/CD
python-tests.yamldocker-images.yamlwindows-tests.yamlprefect-aws-docker-images.yamlstatic-analysis.yamlpython-package.yamlintegration-package-release.yamlprefect-client.yamlintegration-package-tests.yamlDocumentation
docs/v3/get-started/install.mdx🤖 Generated with Claude Code