Skip to content

Commit 2c8957f

Browse files
kartbenfabiobaltieri
authored andcommitted
doc: build: ci: twister: Zephyr now requires Python 3.12 or higher
Update getting started guide, release notes, CI actions, ruff, build system, and Python version compliance check to use Python 3.12 as minimum supported version. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 6f14a1d commit 2c8957f

File tree

16 files changed

+108
-273
lines changed

16 files changed

+108
-273
lines changed

‎.github/workflows/devicetree_checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ${{ matrix.os }}
3030
strategy:
3131
matrix:
32-
python-version: ['3.10', '3.11', '3.12', '3.13']
32+
python-version: ['3.12', '3.13']
3333
os: [ubuntu-24.04, macos-14, windows-2022]
3434
steps:
3535
- name: checkout

‎.github/workflows/pylib_tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
strategy:
3030
matrix:
31-
python-version: ['3.10', '3.11', '3.12', '3.13']
31+
python-version: ['3.12', '3.13']
3232
os: [ubuntu-24.04]
3333
steps:
3434
- name: checkout

‎.github/workflows/scripts_tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
strategy:
3030
matrix:
31-
python-version: ['3.10', '3.11', '3.12', '3.13']
31+
python-version: ['3.12', '3.13']
3232
os: [ubuntu-24.04]
3333
steps:
3434
- name: checkout

‎.github/workflows/twister_tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ${{ matrix.os }}
3636
strategy:
3737
matrix:
38-
python-version: ['3.10', '3.11', '3.12', '3.13']
38+
python-version: ['3.12', '3.13']
3939
os: [ubuntu-24.04]
4040
steps:
4141
- name: checkout

‎.github/workflows/twister_tests_blackbox.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
name: Twister Black Box Tests
2727
strategy:
2828
matrix:
29-
python-version: ['3.10', '3.11', '3.12', '3.13']
29+
python-version: ['3.12', '3.13']
3030
fail-fast: false
3131
runs-on: ubuntu-24.04
3232
steps:

‎.github/workflows/west_cmds.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ${{ matrix.os }}
3333
strategy:
3434
matrix:
35-
python-version: ['3.10', '3.11', '3.12', '3.13']
35+
python-version: ['3.12', '3.13']
3636
os: [ubuntu-24.04, macos-14, windows-2022]
3737
steps:
3838
- name: checkout

‎.ruff.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extend = ".ruff-excludes.toml"
55

66
line-length = 100
7-
target-version = "py310"
7+
target-version = "py312"
88

99
[lint]
1010
select = [

‎cmake/modules/python.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if(WIN32)
1111
set(ENV{PYTHONIOENCODING} "utf-8")
1212
endif()
1313

14-
set(PYTHON_MINIMUM_REQUIRED 3.10)
14+
set(PYTHON_MINIMUM_REQUIRED 3.12)
1515

1616
if(NOT DEFINED Python3_EXECUTABLE AND DEFINED WEST_PYTHON)
1717
set(Python3_EXECUTABLE "${WEST_PYTHON}")

‎doc/develop/getting_started/index.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The current minimum required version for the main dependencies are:
6262
- 3.20.5
6363

6464
* - `Python <https://www.python.org/>`_
65-
- 3.10
65+
- 3.12
6666

6767
* - `Devicetree compiler <https://www.devicetree.org/>`_
6868
- 1.4.6

‎doc/releases/migration-guide-4.4.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ the :ref:`release notes<zephyr_4.4>`.
2020
:local:
2121
:depth: 2
2222

23+
Common
24+
******
25+
26+
* The minimum required Python version is now 3.12 (from 3.10).
27+
2328
Build System
2429
************
2530

0 commit comments

Comments
 (0)