-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
Add support for Python 3.14 #153939
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 support for Python 3.14 #153939
Conversation
edenhaus
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.
Thanks @cdce8p 👍
|
@edenhaus Merged dev to trigger a new CI run. Just one failing test now which I believe is also flaky for 3.13. tests/components/playstation_network/test_init.py::test_trophy_title_coordinator_play_new_game - KeyError: 'entity_picture' |
|
It seems it be consistent though... |
Yes, but unrelated to Python 3.14. This is the last run on dev |
|
All tests pass now |
frenck
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.
Thanks, @cdce8p 👍
../Frenck
Breaking change
The following integrations won't work with Python 3.14 initially. Support will be added back once the dependencies are updated.
AppleTVJabber (XMPP)Logitech Harmony HubThe
profiler.memoryservice is not available when using Python 3.14. It will return if and whenguppy3becomes Python 3.14 compatible.Proposed change
Add initial support for Python 3.14.
The following integrations don't work yet.
AppleTVdepends onpyatvRequires an update to the pydantic config.
Drop support for pydantic v1 postlund/pyatv#2736
Jabber (XMPP)andLogitech Harmony Hubdepend onslixmppNeeds to update
pyo3to0.25.https://codeberg.org/poezio/slixmpp
Update slixmpp to 1.12.0 #154872
Profilerdepends (partially) onguppy3==3.1.5Error building wheel for Python 3.14
https://github.com/zhuyifei1999/guppy3
3.1.5: build fails with Python 3.14 zhuyifei1999/guppy3#50
Notes for developers
Pydantic will only fully support Python 3.14 with
v2models. Oldv1models might still work, especially if no advanced features are used. It's nevertheless recommended to update all dependencies to use the newerv2models.Thanks
I've started working on the Python 3.14 support back in May, 5 months ago. Thanks to everyone who has contributed to it and helped make it possible to have a PR ready on the day of release, especially with over 1500 dependencies.
--
For reference the Python 3.13 update:
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: