Skip to content

Commit 227e7aa

Browse files
Add Python 3.14 support
Add Python 3.14 to wheel build matrices, pyproject.toml classifiers, requires-python range, black target versions, and documentation. Note: the tokenizers submodule (extension/llm/tokenizers) needs a separate update in its own repo.
1 parent 94e9ca6 commit 227e7aa

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

.github/workflows/build-wheels-aarch64-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
test-infra-ref: main
3333
with-cuda: disabled
3434
with-rocm: disabled
35-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
35+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3636

3737
build:
3838
needs: generate-matrix

.github/workflows/build-wheels-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
test-infra-ref: main
3333
with-cuda: disabled
3434
with-rocm: disabled
35-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
35+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3636

3737
build:
3838
needs: generate-matrix

.github/workflows/build-wheels-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
test-infra-ref: main
3333
with-cuda: disabled
3434
with-rocm: disabled
35-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
35+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3636

3737
build:
3838
needs: generate-matrix

.github/workflows/build-wheels-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
test-infra-ref: main
3636
with-cuda: disabled
3737
with-rocm: disabled
38-
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
38+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3939

4040
build:
4141
needs: generate-matrix

README-wheel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ExecuTorch is to enable wider customization and deployment capabilities of the
55
PyTorch programs.
66

77
The `executorch` pip package is in beta.
8-
* Supported python versions: 3.10, 3.11, 3.12, 3.13
8+
* Supported python versions: 3.10, 3.11, 3.12, 3.13, 3.14
99
* Compatible systems: Linux x86_64, macOS aarch64
1010

1111
The prebuilt `executorch.runtime` module included in this package provides a way

docs/source/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This section is intended to describe the necessary steps to take a PyTorch model
88
## System Requirements
99
The following are required to install the ExecuTorch host libraries, needed to export models and run from Python. Requirements for target end-user devices are backend dependent. See the appropriate backend documentation for more information.
1010

11-
- Python 3.10 - 3.13
11+
- Python 3.10 - 3.14
1212
- g++ version 7 or higher, clang++ version 5 or higher, or another C++17-compatible toolchain.
1313
- Linux (x86_64 or ARM64), macOS (ARM64), or Windows (x86_64).
1414
- Intel-based macOS systems require building PyTorch from source (see [Building From Source](using-executorch-building-from-source.md) for instructions).

docs/source/using-executorch-building-from-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ExecuTorch is tested on the following systems, although it should also work in s
2828
- Otherwise, Python's built-in virtual environment manager `python venv` is a good alternative.
2929
* `g++` version 7 or higher, `clang++` version 5 or higher, or another
3030
C++17-compatible toolchain.
31-
* `python` version 3.10-3.13
31+
* `python` version 3.10-3.14
3232
* `ccache` (optional) - A compiler cache that speeds up recompilation
3333
* **macOS**
3434
- `Xcode Command Line Tools`

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ classifiers = [
4848
"Programming Language :: Python :: 3.11",
4949
"Programming Language :: Python :: 3.12",
5050
"Programming Language :: Python :: 3.13",
51+
"Programming Language :: Python :: 3.14",
5152
]
5253

53-
requires-python = ">=3.10,<3.14"
54+
requires-python = ">=3.10,<3.15"
5455
dependencies=[
5556
"expecttest",
5657
"flatbuffers",
@@ -133,7 +134,7 @@ first_party_detection = false
133134
# Emit syntax compatible with older versions of python instead of only the range
134135
# specified by `requires-python`. TODO: Remove this once we support these older
135136
# versions of python and can expand the `requires-python` range.
136-
target-version = ["py38", "py39", "py310", "py311", "py312", "py313"]
137+
target-version = ["py38", "py39", "py310", "py311", "py312", "py313", "py314"]
137138

138139
[tool.docformatter]
139140
black = true

0 commit comments

Comments
 (0)