Skip to content

Commit

Permalink
Build free-threaded wheels for python3.13t
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 28, 2024
1 parent 33b08f4 commit f00db83
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 8 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ jobs:
python-version: 3.12
architecture: x64
- uses: dtolnay/rust-toolchain@nightly
- name: Build wheels - x86_64
- name: Build wheels
uses: messense/maturin-action@v1
with:
target: x86_64
args: --release --out dist --sdist
target: universal2-apple-darwin
args: --release --out dist
sccache: true
- name: Build wheels - universal2
- name: Build free-threaded wheels
uses: messense/maturin-action@v1
with:
target: universal2-apple-darwin
args: --release --out dist
args: --release --out dist -i python3.13t
sccache: true
- name: Install built wheel - universal2
- name: Install built wheel
run: |
pip install nh3 --no-index --find-links dist --force-reinstall
pip install pytest
Expand Down Expand Up @@ -57,6 +57,11 @@ jobs:
with:
target: ${{ matrix.target }}
args: --release --out dist
- name: Build free-threaded wheels
uses: messense/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -i python3.13t
- name: Install built wheel
run: |
pip install nh3 --no-index --find-links dist --force-reinstall
Expand Down Expand Up @@ -87,6 +92,14 @@ jobs:
manylinux: auto
args: --release --out dist
sccache: true
- name: Build free-threaded wheels
uses: messense/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -i python3.13t
sccache: true
- name: Install built wheel
if: matrix.target == 'x86_64'
run: |
Expand Down Expand Up @@ -117,6 +130,14 @@ jobs:
manylinux: auto
args: --release --out dist
sccache: true
- name: Build free-threaded wheels
uses: messense/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -i python3.13
sccache: true
- uses: uraimo/run-on-arch-action@v2.8.1
if: matrix.target != 'ppc64'
name: Install built wheel
Expand Down Expand Up @@ -157,6 +178,13 @@ jobs:
manylinux: musllinux_1_2
args: --release --out dist
sccache: true
- name: Build free-threaded wheels
uses: messense/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: musllinux_1_2
args: --release --out dist -i python3.13t
sccache: true
- name: Install built wheel
if: matrix.target == 'x86_64-unknown-linux-musl'
uses: addnab/docker-run-action@v3
Expand Down Expand Up @@ -197,6 +225,13 @@ jobs:
manylinux: musllinux_1_2
args: --release --out dist
sccache: true
- name: Build free-threaded wheels
uses: messense/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
manylinux: musllinux_1_2
args: --release --out dist -i python3.13t
sccache: true
- uses: uraimo/run-on-arch-action@v2.8.1
name: Install built wheel
with:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build:
os: "ubuntu-22.04"
tools:
python: "3.12"
rust: "1.70"
rust: "1.82"

python:
install:
Expand Down
25 changes: 25 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ crate-type = ["cdylib"]

[dependencies]
ammonia = "4.0.0"
pyo3 = { version = "0.23.2", features = ["abi3-py38"] }
pyo3 = { version = "0.23.2", features = ["abi3-py38", "generate-import-lib"] }

0 comments on commit f00db83

Please sign in to comment.