Skip to content

Commit

Permalink
Update PyO3 0.20 -> 0.22 & Python 3.13 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger authored Sep 5, 2024
1 parent 5380136 commit 94a6f9a
Show file tree
Hide file tree
Showing 14 changed files with 1,842 additions and 1,757 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ jobs:
fail-fast: ${{ !( startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') ) }}
matrix:
python-version:
- '3.8'
- '3.9'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
conf:
- { os: ubuntu-latest, target: x86_64, target-triple: x86_64-unknown-linux-gnu, manylinux: auto }
- { os: ubuntu-latest, target: x86_64, target-triple: x86_64-unknown-linux-musl, manylinux: musllinux_1_1 }
Expand Down Expand Up @@ -116,6 +117,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.conf.python-architecture }}
allow-prereleases: true

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -214,7 +216,8 @@ jobs:
# Could use 'distro: alpine_latest' in 'run-on-arch-action' but seems difficult to install a specific version of python
# so we'll just use existing python alpine images to test import and cli use w/o testing archs other than x86_64
- name: Install built wheel and Test (musllinux)
if: startsWith(matrix.conf.manylinux, 'musl') && matrix.conf.target == 'x86_64'
# TODO: python:3.13-alpine doesn't exist yet
if: startsWith(matrix.conf.manylinux, 'musl') && matrix.conf.target == 'x86_64' && matrix.python-version != '3.13'
run: |
docker run \
-v $(pwd)/dist:/wheels \
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cramjam-python"
version = "2.8.4-rc2"
version = "2.8.4-rc3"
authors = ["Miles Granger <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -20,11 +20,11 @@ use-system-blosc2 = ["libcramjam/use-system-blosc2"]


[dependencies]
pyo3 = { version = "^0.20", default-features = false, features = ["macros"] }
pyo3 = { version = "^0.22", default-features = false, features = ["macros"] }
libcramjam = { version = "0.4.2" }

[build-dependencies]
pyo3-build-config = "^0.20"
pyo3-build-config = "^0.22"

[profile.release]
strip = true
Expand Down
Loading

0 comments on commit 94a6f9a

Please sign in to comment.