Skip to content

Commit c948f49

Browse files
committed
fix: no more python 3.9
1 parent 4889861 commit c948f49

File tree

4 files changed

+18
-26
lines changed

4 files changed

+18
-26
lines changed

.github/workflows/ci.yml

+8-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This workflow is autogenerated by maturin v1.3.0
22
name: CI
3-
43
on:
54
push:
65
branches:
@@ -9,10 +8,8 @@ on:
98
- "*"
109
pull_request:
1110
workflow_dispatch:
12-
1311
permissions:
1412
contents: read
15-
1613
jobs:
1714
format:
1815
name: Check Python format
@@ -29,7 +26,6 @@ jobs:
2926
run: ruff check .
3027
- name: Black
3128
run: black --check --diff .
32-
3329
rustfmt:
3430
name: Check Rust format
3531
runs-on: ubuntu-latest
@@ -40,14 +36,12 @@ jobs:
4036
- run: rustup update stable && rustup default stable
4137
- run: rustup component add rustfmt
4238
- run: cargo fmt --all --check
43-
4439
test:
4540
name: Run tests
4641
runs-on: ubuntu-latest
4742
strategy:
4843
matrix:
49-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
50-
44+
python-version: ["3.10", "3.11", "3.12", "3.13"]
5145
steps:
5246
- uses: actions/checkout@v4
5347
with:
@@ -70,7 +64,6 @@ jobs:
7064
with:
7165
sccache: true
7266
manylinux: auto
73-
7467
linux:
7568
runs-on: ubuntu-latest
7669
strategy:
@@ -82,12 +75,12 @@ jobs:
8275
fetch-depth: 0
8376
- uses: actions/setup-python@v4
8477
with:
85-
python-version: "3.9"
78+
python-version: "3.10"
8679
- name: Build wheels
8780
uses: PyO3/maturin-action@v1
8881
with:
8982
target: ${{ matrix.target }}
90-
args: --release --out dist --interpreter 3.9
83+
args: --release --out dist --interpreter 3.10
9184
sccache: true
9285
manylinux: auto
9386
- name: Upload wheels
@@ -104,7 +97,7 @@ jobs:
10497
pytest --import-mode=importlib
10598
- name: pytest
10699
if: ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }}
107-
uses: uraimo/run-on-arch-action@v2.7.2
100+
uses: uraimo/run-on-arch-action@v2.8
108101
with:
109102
arch: ${{ matrix.target }}
110103
distro: ubuntu22.04
@@ -117,7 +110,6 @@ jobs:
117110
set -e
118111
pip3 install --pre "general_sam[test]" --find-links dist --force-reinstall
119112
pytest --import-mode=importlib
120-
121113
windows:
122114
runs-on: windows-latest
123115
strategy:
@@ -129,13 +121,13 @@ jobs:
129121
fetch-depth: 0
130122
- uses: actions/setup-python@v4
131123
with:
132-
python-version: "3.9"
124+
python-version: "3.10"
133125
architecture: ${{ matrix.target }}
134126
- name: Build wheels
135127
uses: PyO3/maturin-action@v1
136128
with:
137129
target: ${{ matrix.target }}
138-
args: --release --out dist --interpreter 3.9
130+
args: --release --out dist --interpreter 3.10
139131
sccache: true
140132
- name: Upload wheels
141133
uses: actions/upload-artifact@v4
@@ -149,7 +141,6 @@ jobs:
149141
set -e
150142
pip install --pre "general_sam[test]" --find-links dist --force-reinstall
151143
pytest --import-mode=importlib
152-
153144
macos:
154145
runs-on: macos-latest
155146
strategy:
@@ -161,12 +152,12 @@ jobs:
161152
fetch-depth: 0
162153
- uses: actions/setup-python@v4
163154
with:
164-
python-version: "3.9"
155+
python-version: "3.10"
165156
- name: Build wheels
166157
uses: PyO3/maturin-action@v1
167158
with:
168159
target: ${{ matrix.target }}
169-
args: --release --out dist --interpreter 3.9
160+
args: --release --out dist --interpreter 3.10
170161
sccache: true
171162
- name: Upload wheels
172163
uses: actions/upload-artifact@v4
@@ -180,7 +171,6 @@ jobs:
180171
set -e
181172
pip install --pre "general_sam[test]" --find-links dist --force-reinstall
182173
pytest --import-mode=importlib
183-
184174
sdist:
185175
needs: [test]
186176
runs-on: ubuntu-latest
@@ -198,7 +188,6 @@ jobs:
198188
with:
199189
name: wheels-sdist
200190
path: dist
201-
202191
release:
203192
name: Release
204193
runs-on: ubuntu-latest

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ crate-type = ["cdylib"]
1616
[dependencies]
1717
either = "1.15.0"
1818
general-sam = { version = "1.0.1", features = ["all"] }
19-
pyo3 = { version = "0.24.0", features = ["extension-module", "generate-import-lib", "abi3-py39"] }
19+
pyo3 = { version = "0.24.0", features = ["extension-module", "generate-import-lib", "abi3-py310"] }
2020

2121
[profile.release]
2222
lto = true

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

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

tests/conftest.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ def parse_from_readme():
66
77
Under the BSD 3-Clause "New" or "Revised" License.
88
"""
9-
with open(
10-
"tests/test_readme.py",
11-
"w",
12-
encoding="utf8",
13-
) as out, open("README.md", encoding="utf8") as readme:
9+
with (
10+
open(
11+
"tests/test_readme.py",
12+
"w",
13+
encoding="utf8",
14+
) as out,
15+
open("README.md", encoding="utf8") as readme,
16+
):
1417
output, mode = [], None
1518

1619
for i, line in enumerate(readme.readlines()):

0 commit comments

Comments
 (0)