Skip to content

Commit 2f9aa97

Browse files
committed
doc: ci: Zephyr now requires Python 3.12 or higher
Update getting started guide, release notes, CI actions and Python version compliance check to use Python 3.12 as minimum supported version. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent a4f702b commit 2f9aa97

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
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-22.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
os: [ubuntu-24.04, macos-14, windows-2022]
3131
fail-fast: false
3232
runs-on: ${{ matrix.os }}

.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-22.04, macos-14, windows-2022]
3737
steps:
3838
- name: checkout

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/release-notes-4.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ We are pleased to announce the release of Zephyr version 4.2.0.
3333

3434
Major enhancements with this release include:
3535

36+
* Zephyr now requires Python 3.12 or higher.
37+
3638
An overview of the changes required or recommended when migrating your application from Zephyr
3739
v4.1.0 to Zephyr v4.2.0 can be found in the separate :ref:`migration guide<migration_4.2>`.
3840

scripts/ci/check_compliance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ class PythonCompatCheck(ComplianceTest):
18281828
name = "PythonCompat"
18291829
doc = "Check that Python files are compatible with Zephyr minimum supported Python version."
18301830

1831-
MAX_VERSION = (3, 10)
1831+
MAX_VERSION = (3, 12)
18321832
MAX_VERSION_STR = f"{MAX_VERSION[0]}.{MAX_VERSION[1]}"
18331833

18341834
def run(self):

0 commit comments

Comments
 (0)