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
29 changes: 27 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"

- name: Install bump2version
run: pip install --upgrade bump2version
Expand Down Expand Up @@ -113,6 +113,26 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
manylinux: auto
py-interpreter: "python3.13"
- os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
manylinux: auto
py-interpreter: "python3.13"
- os: macos-latest
target: aarch64-apple-darwin
manylinux: off
py-interpreter: "python3.13"
- os: macos-15-intel
target: x86_64-apple-darwin
manylinux: off
py-interpreter: "python3.13"
- os: windows-latest
target: x86_64-pc-windows-msvc
manylinux: off
py-interpreter: "python3.13"
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
manylinux: auto
Expand Down Expand Up @@ -141,6 +161,11 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -152,7 +177,7 @@ jobs:
with:
working-directory: python
target: ${{ matrix.target }}
args: --release --out dist
args: --release --out dist --interpreter ${{ matrix.py-interpreter }}
sccache: "true"
manylinux: ${{ matrix.manylinux }}
before-script-linux: |
Expand Down
10 changes: 10 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

echo "==> cargo fmt (check)"
cargo fmt --all -- --check

echo "==> cargo clippy (warnings as errors)"
cargo clippy --all-targets --all-features --no-deps -- -D warnings

echo "✓ Lint checks passed"
2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]

[dependencies]
anyhow = "1.0"
pyo3 = { version = "0.21", features = ["extension-module"] }
pyo3 = { version = "0.21", features = ["extension-module", "abi3-py38"] }
syftbox-sdk = { path = ".." }

[package.metadata.maturin]
Expand Down
3 changes: 2 additions & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "maturin"
name = "syftbox-sdk"
version = "0.1.1"
description = "Python bindings for the syftbox-sdk Rust library"
requires-python = ">=3.8"
requires-python = ">=3.8,<3.14"
authors = [{ name = "OpenMined" }]
readme = "README.md"
license = { text = "Apache-2.0" }
Expand All @@ -15,6 +15,7 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
Expand Down
Loading