Skip to content

Commit b9fb607

Browse files
⬆️ deps: Update dependencies and drop python 3.8 and 3.9 support, use abi310 (#58)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: SigureMo <sigure.qaq@gmail.com>
1 parent ef12fb0 commit b9fb607

File tree

7 files changed

+38
-35
lines changed

7 files changed

+38
-35
lines changed

.github/workflows/lint-and-fmt.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
# Only run linter and formatter on minimum supported Python version
16-
python-version: ['3.8']
16+
python-version: ['3.10']
1717
architecture: ['x64']
1818
name: lint and fmt - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
1919
steps:
@@ -33,6 +33,7 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
architecture: ${{ matrix.architecture }}
3535
cache: 'pip'
36+
allow-prereleases: true
3637

3738
- name: Install just
3839
uses: extractions/setup-just@v3

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2019
target: [x86_64, x86, aarch64]
21-
name: Ubuntu, ${{ matrix.target }}, Python ${{ matrix.python-version }}
20+
name: Ubuntu, ${{ matrix.target }}
2221
steps:
2322
- uses: actions/checkout@v4
2423
- uses: actions/setup-python@v6
2524
with:
26-
python-version: ${{ matrix.python-version }}
25+
python-version: 3.x
26+
allow-prereleases: true
2727
- name: Build wheels
2828
uses: PyO3/maturin-action@v1
2929
with:
@@ -34,22 +34,22 @@ jobs:
3434
- name: Upload wheels
3535
uses: actions/upload-artifact@v4
3636
with:
37-
name: wheels-ubuntu-${{ matrix.target }}-${{ matrix.python-version }}
37+
name: wheels-ubuntu-${{ matrix.target }}
3838
path: dist
3939

4040
windows:
4141
runs-on: windows-latest
4242
strategy:
4343
matrix:
44-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
4544
target: [x64, x86]
46-
name: Windows, ${{ matrix.target }}, Python ${{ matrix.python-version }}
45+
name: Windows, ${{ matrix.target }}
4746
steps:
4847
- uses: actions/checkout@v4
4948
- uses: actions/setup-python@v6
5049
with:
51-
python-version: ${{ matrix.python-version }}
50+
python-version: 3.x
5251
architecture: ${{ matrix.target }}
52+
allow-prereleases: true
5353
- name: Build wheels
5454
uses: PyO3/maturin-action@v1
5555
with:
@@ -59,21 +59,21 @@ jobs:
5959
- name: Upload wheels
6060
uses: actions/upload-artifact@v4
6161
with:
62-
name: wheels-windows-${{ matrix.target }}-${{ matrix.python-version }}
62+
name: wheels-windows-${{ matrix.target }}
6363
path: dist
6464

6565
macos:
6666
runs-on: macos-latest
6767
strategy:
6868
matrix:
69-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
7069
target: [x86_64, aarch64]
71-
name: macOS, ${{ matrix.target }}, Python ${{ matrix.python-version }}
70+
name: macOS, ${{ matrix.target }}
7271
steps:
7372
- uses: actions/checkout@v4
7473
- uses: actions/setup-python@v6
7574
with:
76-
python-version: ${{ matrix.python-version }}
75+
python-version: 3.x
76+
allow-prereleases: true
7777
- name: Build wheels
7878
uses: PyO3/maturin-action@v1
7979
with:
@@ -83,7 +83,7 @@ jobs:
8383
- name: Upload wheels
8484
uses: actions/upload-artifact@v4
8585
with:
86-
name: wheels-macos-${{ matrix.target }}-${{ matrix.python-version }}
86+
name: wheels-macos-${{ matrix.target }}
8787
path: dist
8888

8989
sdist:

.github/workflows/unit-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
15+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
1616
architecture: ['x64']
1717
name: unittest - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
1818
steps:
@@ -28,6 +28,7 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929
architecture: ${{ matrix.architecture }}
3030
cache: 'pip'
31+
allow-prereleases: true
3132

3233
- name: Install just
3334
uses: extractions/setup-just@v3

Cargo.lock

Lines changed: 12 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "maturin"
66
name = "codespan-reporting"
77
description = "A python binding for codespan-reporting"
88
readme = "README.md"
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.10"
1010
authors = [{ name = "Nyakku Shigure", email = "sigure.qaq@gmail.com" }]
1111
keywords = ["codespan-reporting"]
1212
license = { text = "MIT" }
@@ -15,27 +15,27 @@ classifiers = [
1515
"Programming Language :: Rust",
1616
"Programming Language :: Python",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.8",
19-
"Programming Language :: Python :: 3.9",
2018
"Programming Language :: Python :: 3.10",
2119
"Programming Language :: Python :: 3.11",
2220
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2323
"Programming Language :: Python :: Implementation :: CPython",
2424
"Programming Language :: Python :: Implementation :: PyPy",
2525
]
2626
dynamic = ["version"]
2727

2828
[project.optional-dependencies]
29-
dev = ["pytest>=7.4.4", "ruff==0.11.13", "pyright>=1.1.293", "build"]
29+
dev = ["pytest>=7.4.4", "ruff==0.13.2", "pyright>=1.1.293", "build"]
3030

3131
[tool.pyright]
3232
include = ["src", "tests"]
33-
pythonVersion = "3.8"
33+
pythonVersion = "3.10"
3434
typeCheckingMode = "strict"
3535

3636
[tool.ruff]
3737
line-length = 120
38-
target-version = "py38"
38+
target-version = "py310"
3939

4040
[tool.ruff.lint]
4141
select = [

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ name = "codespan_reporting_pyo3"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = "0.25.0"
12+
pyo3 = { version = "0.26.0", features = ["abi3-py310"] }
1313
codespan-reporting = "0.12.0"

src/codespan_reporting/_core.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import TypeAlias
2+
13
# config.rs
24
class Config:
35
def __init__(self) -> None: ...
@@ -20,7 +22,7 @@ class LabelStyle:
2022
Secondary: LabelStyle
2123
SecondaryUnderline: LabelStyle
2224

23-
type FileId = int
25+
FileId: TypeAlias = int
2426

2527
class Label:
2628
def __init__(

0 commit comments

Comments
 (0)