Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/lint-and-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Only run linter and formatter on minimum supported Python version
python-version: ['3.8']
python-version: ['3.10']
architecture: ['x64']
name: lint and fmt - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
steps:
Expand All @@ -33,6 +33,7 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
cache: 'pip'
allow-prereleases: true

- name: Install just
uses: extractions/setup-just@v3
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
target: [x86_64, x86, aarch64]
name: Ubuntu, ${{ matrix.target }}, Python ${{ matrix.python-version }}
name: Ubuntu, ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
python-version: 3.x
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -34,22 +34,22 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-ubuntu-${{ matrix.target }}-${{ matrix.python-version }}
name: wheels-ubuntu-${{ matrix.target }}
path: dist

windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
target: [x64, x86]
name: Windows, ${{ matrix.target }}, Python ${{ matrix.python-version }}
name: Windows, ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
python-version: 3.x
architecture: ${{ matrix.target }}
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -59,21 +59,21 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-windows-${{ matrix.target }}-${{ matrix.python-version }}
name: wheels-windows-${{ matrix.target }}
path: dist

macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
target: [x86_64, aarch64]
name: macOS, ${{ matrix.target }}, Python ${{ matrix.python-version }}
name: macOS, ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
python-version: 3.x
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.target }}-${{ matrix.python-version }}
name: wheels-macos-${{ matrix.target }}
path: dist

sdist:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
architecture: ['x64']
name: unittest - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
steps:
Expand All @@ -28,6 +28,7 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
cache: 'pip'
allow-prereleases: true

- name: Install just
uses: extractions/setup-just@v3
Expand Down
25 changes: 12 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "maturin"
name = "codespan-reporting"
description = "A python binding for codespan-reporting"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"
authors = [{ name = "Nyakku Shigure", email = "sigure.qaq@gmail.com" }]
keywords = ["codespan-reporting"]
license = { text = "MIT" }
Expand All @@ -15,27 +15,27 @@ classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]

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

[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.8"
pythonVersion = "3.10"
typeCheckingMode = "strict"

[tool.ruff]
line-length = 120
target-version = "py38"
target-version = "py310"

[tool.ruff.lint]
select = [
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "codespan_reporting_pyo3"
crate-type = ["cdylib"]

[dependencies]
pyo3 = "0.25.0"
pyo3 = { version = "0.26.0", features = ["abi3-py310"] }
codespan-reporting = "0.12.0"
4 changes: 3 additions & 1 deletion src/codespan_reporting/_core.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import TypeAlias

# config.rs
class Config:
def __init__(self) -> None: ...
Expand All @@ -20,7 +22,7 @@ class LabelStyle:
Secondary: LabelStyle
SecondaryUnderline: LabelStyle

type FileId = int
FileId: TypeAlias = int

class Label:
def __init__(
Expand Down