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
68 changes: 43 additions & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is autogenerated by maturin v1.12.6
# This file is autogenerated by maturin v1.13.3
# To update, run
#
# maturin generate-ci github
Expand All @@ -24,30 +24,29 @@ jobs:
strategy:
matrix:
platform:
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86_64
- runner: ubuntu-latest
target: x86
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: aarch64
- runner: ubuntu-latest
target: armv7
- runner: ubuntu-latest
target: s390x
- runner: ubuntu-latest
target: ppc64le
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
python-version: "3.13"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: auto
- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -i python3.14t
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
Expand All @@ -66,26 +65,29 @@ jobs:
strategy:
matrix:
platform:
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86_64
- runner: ubuntu-latest
target: x86
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: aarch64
- runner: ubuntu-latest
target: armv7
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
python-version: "3.13"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: musllinux_1_2
- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -i python3.14t
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: musllinux_1_2
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
Expand All @@ -100,24 +102,31 @@ jobs:
- runner: windows-latest
target: x64
python_arch: x64
- runner: windows-latest
target: x86
python_arch: x86
- runner: windows-11-arm
target: aarch64
python_arch: arm64
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.13
python-version: "3.13"
architecture: ${{ matrix.platform.python_arch }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
- uses: actions/setup-python@v6
with:
python-version: "3.14t"
architecture: ${{ matrix.platform.python_arch }}
- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -i python3.14t
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
Expand All @@ -143,13 +152,22 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
python-version: "3.13"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
- uses: actions/setup-python@v6
with:
python-version: "3.14t"
- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -i python3.14t
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
- name: Upload wheels
uses: actions/upload-artifact@v6
with:
Expand Down Expand Up @@ -192,7 +210,7 @@ jobs:
steps:
- uses: actions/download-artifact@v7
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v3
uses: actions/attest@v4
with:
subject-path: 'wheels-*/*'
- name: Install uv
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "toons"
version = "0.6.0"
version = "0.7.0"
edition = "2024"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -9,4 +9,4 @@ name = "toons"
crate-type = ["cdylib"]

[dependencies]
pyo3 = "*"
pyo3 = { version = "*", features = ["experimental-inspect"] }
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,29 @@ with open("data.toon", "r") as f:
git clone https://github.com/alesanfra/toons.git
cd toons

# Install dependencies
pip install -r requirements-dev.txt
# Create venv and install dependencies
uv venv -p 3.14
uv sync --frozen

# Build extension
maturin develop
# Build module
uv run maturin develop --uv

# Run tests
pytest
uv run pytest
```

See the [Development Guide](https://toons.readthedocs.io/en/stable/development/) for more details.

## Targets

Starting with v0.7.0, to optimize GitHub Actions free-tier credits, we no longer build binary wheels for these targets:

- Linux x86, s390x, and ppc64le, since we had 0 downloads during the period from 2026-04-20 to 2026-05-20
- Linux armv7l, since we had only 6 downloads during the period from 2026-04-20 to 2026-05-20
- Windows x86 (32-bit), since we had 0 downloads during the period from 2026-04-20 to 2026-05-20

Source distributions will remain available, so you will still be able to install `toons` if you also have the Rust compiler installed.

## Contributing

Contributions are welcome! Please follow [Conventional Commits](https://www.conventionalcommits.org/) and run tests before submitting.
Expand Down
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=1.9,<2.0"]
requires = ["maturin>=1.13.3,<2.0"]
build-backend = "maturin"

[project]
Expand All @@ -21,6 +21,22 @@ dynamic = ["version"]
Homepage = "https://github.com/alesanfra/toons"
Source = "https://github.com/alesanfra/toons"

[dependency-groups]
dev = [
"maturin>=1.13.3",
"pre-commit>=2.21.0",
"pytest>=7.4.4",
"pytest-cov>=4.1.0",
]
docs = [
"mkdocs>=1.5.3",
"mkdocs-autorefs>=0.4.1",
"mkdocs-material>=9.2.7",
"mkdocstrings>=0.22.0",
"mkdocstrings-python>=1.1.2",
"pymdown-extensions>=10.2.1",
]

[tool.maturin]
features = ["pyo3/extension-module", "pyo3/abi3-py37"]
include = ["toons.pyi"]
Expand Down
Loading
Loading