-
Notifications
You must be signed in to change notification settings - Fork 2k
Add Python 3.14 support #19119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python 3.14 support #19119
Conversation
CodSpeed Performance ReportMerging #19119 will not alter performanceComparing Summary
|
|
It looks like some of these issues have been resolved in later versions of the packages. Even though orjson 3.10.18 claims to support Python 3.14 that doesn't seem to be the case. The later versions at least compiles correctly. |
5f7638b to
786fc0f
Compare
This PR adds Python 3.14 support to Prefect by updating version declarations and CI test matrices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Pillow does not yet support Python 3.14, so this commit: - Restricts pillow installation to Python <3.14 in pyproject.toml - Makes PIL import optional in BlockStandardTestSuite - Skips image validation tests when PIL is not available 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
cairosvg has a transitive dependency on pillow, which doesn't support Python 3.14 yet. This prevents pillow from being installed on 3.14. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
786fc0f to
b4d3e20
Compare
|
|
||
| try: | ||
| if asyncio.iscoroutinefunction(hook): | ||
| if inspect.iscoroutinefunction(hook): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asyncio.iscoroutinefunction is deprecated in Python 3.14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was created to replace V2ValidatedFunction because pydantic v1 isn't supported with Python 3.14. This implementation only uses pydantic v2.
zzstoatzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥧
This PR adds Python 3.14 support to Prefect.
Closes #19252
🤖 Generated with Claude Code