Skip to content

Commit

Permalink
fix(build): enforce Python 3.8+ and set manylinux2014 compatibility
Browse files Browse the repository at this point in the history
This commit updates build configurations to ensure proper Python version
compatibility and Linux wheel building:

- Add Python version constraint (>=3.8) to pyo3 dependency
- Set manylinux2014 as explicit target for Linux builds
- Add --compatibility manylinux2014 flag to maturin build args

These changes prevent building for unsupported Python versions while
ensuring proper wheel compatibility across Linux distributions.
  • Loading branch information
dirvine committed Nov 28, 2024
1 parent 73ea17e commit 45faae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist
manylinux: "2014"
args: --release --out dist --compatibility manylinux2014
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ num_cpus = "1.13.0"
itertools = "~0.10.0"
tempfile = "3.6.0"
xor_name = "5.0.0"
pyo3 = { version = "0.20.0", optional = true, features = ["extension-module"] }
pyo3 = { version = "0.20.0", optional = true, features = ["extension-module"], python-version = ">=3.8" }

[dependencies.brotli]
version = "~3.3.0"
Expand Down

0 comments on commit 45faae8

Please sign in to comment.