Skip to content

Commit 27c9877

Browse files
Fix pyo3 ci (#107)
* Fix python version to 3.10-3.13 * Remove python 3.8, 3.9 support. * Update pyo3 deps
1 parent e323ce7 commit 27c9877

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.github/workflows/python.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ jobs:
3636
- uses: actions/checkout@v4
3737
- uses: actions/setup-python@v5
3838
with:
39-
python-version: 3.x
39+
python-version: |
40+
3.10
41+
3.11
42+
3.12
43+
3.13
4044
- name: Generate pyo3 stub
4145
run: |
4246
cargo run --bin stub_gen --features python
4347
- name: Build wheels
4448
uses: PyO3/maturin-action@v1
4549
with:
4650
target: ${{ matrix.platform.target }}
47-
args: --release --features python --features pyo3/extension-module --out dist --find-interpreter
51+
args: --release --features python --features pyo3/extension-module --out dist --interpreter 3.10 3.11 3.12 3.13
4852
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4953
manylinux: auto
5054
- name: Upload wheels
@@ -70,15 +74,19 @@ jobs:
7074
- uses: actions/checkout@v4
7175
- uses: actions/setup-python@v5
7276
with:
73-
python-version: 3.x
77+
python-version: |
78+
3.10
79+
3.11
80+
3.12
81+
3.13
7482
- name: Generate pyo3 stub
7583
run: |
7684
cargo run --bin stub_gen --features python
7785
- name: Build wheels
7886
uses: PyO3/maturin-action@v1
7987
with:
8088
target: ${{ matrix.platform.target }}
81-
args: --release --features python --features pyo3/extension-module --out dist --find-interpreter
89+
args: --release --features python --features pyo3/extension-module --out dist --interpreter 3.10 3.11 3.12 3.13
8290
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
8391
manylinux: musllinux_1_2
8492
- name: Upload wheels
@@ -128,8 +136,6 @@ jobs:
128136
- uses: actions/setup-python@v5
129137
with:
130138
python-version: |
131-
3.8
132-
3.9
133139
3.10
134140
3.11
135141
3.12

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ clap = { version = "4.0.32", features = ["derive"] }
2828
proc-macro2 = { version = "1.0", features=["default", "proc-macro"] }
2929
signal-hook = "0.3.4"
3030
num_enum = "0.7.3"
31-
pyo3 = { version = "0.24.1", optional = true, features = ["multiple-pymethods"] }
32-
pyo3-log = { version = "0.12.3", optional = true }
33-
pyo3-stub-gen = { version = "0.9.0", optional = true }
31+
pyo3 = { version = ">=0.27.1", optional = true, features = ["multiple-pymethods"] }
32+
pyo3-log = { version = ">=0.13.2", optional = true }
33+
pyo3-stub-gen = { version = ">=0.17.0", optional = true }
3434
env_logger = "0.10.0"
3535

3636
[[bin]]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "rustypot"
7-
requires-python = ">=3.8"
7+
requires-python = ">=3.10"
88
classifiers = [
99
"Programming Language :: Rust",
1010
"Programming Language :: Python :: Implementation :: CPython",

0 commit comments

Comments
 (0)