Skip to content

Commit 0c5b0f5

Browse files
committed
use abi3
1 parent a4e6d66 commit 0c5b0f5

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/release_python.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,21 @@ jobs:
5454
name: wheels
5555
path: bindings/python/dist
5656

57-
linux:
58-
runs-on: ubuntu-latest
57+
wheels:
58+
runs-on: "${{ matrix.os }}"
5959
strategy:
6060
matrix:
61-
target: [ x86_64, aarch64, armv7l ]
62-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
61+
include:
62+
- { os: windows-latest }
63+
- { os: macos-latest, target: "universal2-apple-darwin" }
64+
- { os: ubuntu-latest, target: "x86_64" }
65+
- { os: ubuntu-latest, target: "aarch64" }
66+
- { os: ubuntu-latest, target: "armv7l" }
6367
steps:
6468
- uses: actions/checkout@v4
69+
- uses: actions/setup-python@v4
70+
with:
71+
python-version: 3.9
6572
- name: Setup Rust toolchain
6673
uses: ./.github/actions/setup-builder
6774
with:
@@ -72,7 +79,7 @@ jobs:
7279
manylinux: auto
7380
working-directory: "bindings/python"
7481
command: build
75-
args: --release -o dist -i python${{ matrix.python-version }}
82+
args: --release -o dist
7683
env:
7784
# Workaround ring 0.17 build issue
7885
CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"
@@ -84,7 +91,7 @@ jobs:
8491

8592
pypi-publish:
8693
name: Publish Python 🐍 distribution 📦 to Pypi
87-
needs: [ sdist, linux ]
94+
needs: [ sdist, wheels ]
8895
runs-on: ubuntu-latest
8996
# Only publish to PyPi if the tag is not a pre-release
9097
if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}

bindings/python/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ crate-type = ["cdylib"]
3232

3333
[dependencies]
3434
iceberg = { path = "../../crates/iceberg" }
35-
pyo3 = { version = "0.22.3", features = ["extension-module"] }
35+
pyo3 = { version = "0.22.3", features = ["extension-module", "abi3-py39"] }
3636
arrow = { version = "53", features = ["pyarrow"] }

0 commit comments

Comments
 (0)