Skip to content

Commit cb72463

Browse files
authored
Bump up minimum Python version to 3.10 (#239)
Python 3.9 will be end of life at 2025/9.
1 parent bb34411 commit cb72463

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

.github/actions/setup-test-environment/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: "Setup Test Environment"
22
description: "Setup common environment for testing jobs"
33

4+
inputs:
5+
python-version:
6+
description: "Python version to install"
7+
required: false
8+
default: "3.10"
9+
410
runs:
511
using: "composite"
612
steps:
@@ -21,4 +27,4 @@ runs:
2127
- name: Install uv
2228
uses: astral-sh/setup-uv@v3
2329
with:
24-
python-version: 3.9
30+
python-version: ${{ inputs.python-version }}

.github/workflows/python.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ jobs:
1818
- mixed
1919
- mixed_sub
2020
- mixed_sub_multiple
21+
python-version:
22+
- "3.10"
23+
- "3.11"
24+
- "3.12"
25+
- "3.13"
2126
steps:
2227
- name: Checkout
2328
uses: actions/checkout@v4
2429
- name: Setup Environment
2530
uses: ./.github/actions/setup-test-environment
31+
with:
32+
python-version: ${{ matrix.python-version }}
2633
- name: Test
2734
run: task ${{ matrix.crate }}:test

examples/mixed/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "maturin"
55
[project]
66
name = "mixed"
77
version = "0.1"
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99

1010
[tool.maturin]
1111
python-source = "python"

examples/mixed_sub/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "maturin"
55
[project]
66
name = "mixed_sub"
77
version = "0.1"
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99

1010
[tool.maturin]
1111
python-source = "python"

examples/mixed_sub_multiple/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "maturin"
55
[project]
66
name = "mixed_sub_multiple"
77
version = "0.1"
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99

1010
[tool.maturin]
1111
python-source = "python"

examples/pure/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "maturin"
55
[project]
66
name = "pure"
77
version = "0.1"
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99

1010
[tool.maturin]
1111
features = ["pyo3/extension-module"]

0 commit comments

Comments
 (0)