build: add support for python 3.14#19254
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19254
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 Pending, 2 Unrelated Failures, 9 Unclassified FailuresAs of commit 0dd706e with merge base 99bce90 ( UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
There was a problem hiding this comment.
Pull request overview
This PR updates ExecuTorch’s packaging metadata, documentation, and CI matrices to recognize/support Python 3.14 (issue #16750), primarily by widening the declared supported Python range and running CI/wheel builds against 3.14.
Changes:
- Expand supported Python range in packaging metadata (
requires-python, classifiers) and formatting config (Black target versions). - Update multiple docs/READMEs to advertise Python 3.14 support.
- Add Python 3.14 to GitHub Actions test and wheel build matrices.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Add Python 3.14 classifier; widen requires-python to <3.15; include py314 for Black. |
docs/source/using-executorch-building-from-source.md |
Update documented supported Python range to 3.10–3.14. |
docs/source/raspberry_pi_llama_tutorial.md |
Update prerequisite Python range and version-check guidance to 3.10–3.14. |
docs/source/quick-start-section.md |
Update prerequisite Python range to 3.10–3.14. |
docs/source/pathway-quickstart.md |
Update virtualenv Python range guidance to 3.10–3.14. |
docs/source/pathway-beginner.md |
Update prerequisites to 3.10–3.14. |
docs/source/getting-started.md |
Update system requirements to 3.10–3.14. |
README-wheel.md |
Update supported Python versions list to include 3.14. |
.github/workflows/pull.yml |
Add 3.14 to the test-qnn-wheel-packages-linux matrix. |
.github/workflows/build-wheels-windows.yml |
Add 3.14 to wheel build matrix. |
.github/workflows/build-wheels-macos.yml |
Add 3.14 to wheel build matrix. |
.github/workflows/build-wheels-linux.yml |
Add 3.14 to wheel build matrix. |
.github/workflows/build-wheels-aarch64-linux.yml |
Add 3.14 to wheel build matrix. |
.claude/skills/building/SKILL.md |
Update Python version guidance to include 3.14. |
.ci/scripts/test_coreml_bc.sh |
Update comment about Python compatibility for backward-compat CoreML test script. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Running CI tests now |
|
|
|
@mergennachin can we rerun ci tests? |
|
|
||
| # Create a conda environment with Python 3.10 for compatibility with old ET versions | ||
| # ET 1.0.0 only supports Python >=3.10,<3.13 | ||
| # ET 1.0.0 only supports Python >=3.10,<3.15 |
|
I could be wrong, but in the dependencies, I believe |
Summary
Fixes #16750
While scanning my docker images for CVE's there are several that are being found due to python 3.13
Pytorch and vllm support python 3.14, but I'm unable to upgrade until Executorch supports 3.14 as well.
Test plan
I added 3.14 to CI for it to run all the tests