Skip to content

Commit c9bfcbc

Browse files
committed
fix
1 parent 862b227 commit c9bfcbc

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/release_python.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,33 @@ jobs:
6868
- uses: actions/checkout@v4
6969
- name: Setup Rust toolchain
7070
uses: ./.github/actions/setup
71-
- uses: PyO3/maturin-action@v1
71+
72+
# actions/setup-python@v5 doesn't support this yet
73+
- uses: Quansight-Labs/setup-python@v5
74+
if: ${{ runner.os == 'Windows' }}
7275
with:
73-
working-directory: "bindings/python"
74-
target: "${{ matrix.target }}"
75-
command: build
76-
args: --release -o dist -i python3.11 --features=pyo3/extension-module,services-all,abi3
77-
sccache: true
78-
manylinux: auto
76+
python-version: "3.13t"
77+
7978
- uses: PyO3/maturin-action@v1
79+
name: build abi3-py311 wheels
8080
with:
8181
working-directory: "bindings/python"
8282
target: "${{ matrix.target }}"
8383
command: build
84-
args: --release -o dist -i python3.10 --features=pyo3/extension-module,services-all
84+
args: --release -o dist -i 3.11 --features=pyo3/extension-module,services-all,abi3
8585
sccache: true
8686
manylinux: auto
87-
- name: Build free-threaded wheels
88-
uses: PyO3/maturin-action@v1
87+
88+
- uses: PyO3/maturin-action@v1
89+
name: build wheels for cy310 and cp313t
8990
with:
9091
working-directory: "bindings/python"
9192
target: "${{ matrix.target }}"
9293
command: build
93-
args: --release -o dist -i python3.13t --features=pyo3/extension-module,services-all
94+
args: --release -o dist -i 3.10 -i 3.13t --features=pyo3/extension-module,services-all
9495
sccache: true
9596
manylinux: auto
97+
9698
- name: Upload wheels
9799
uses: actions/upload-artifact@v3
98100
with:

bindings/python/Cargo.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ services-upyun = ["opendal/services-upyun"]
150150
services-vercel-artifacts = ["opendal/services-vercel-artifacts"]
151151
services-yandex-disk = ["opendal/services-yandex-disk"]
152152
# we build cp311-abi3 and cp310 wheels now, move this to pyo3 after we drop cp310
153-
abi3 = ["pyo3/abi3-py311"]
153+
abi3 = ["pyo3/abi3-py311", "pyo3/generate-import-lib"]
154154

155155
[lib]
156156
crate-type = ["cdylib"]
@@ -160,10 +160,8 @@ doc = false
160160
bytes = "1.5.0"
161161
futures = "0.3.28"
162162
# this crate won't be published, we always use the local version
163-
opendal = { version = ">=0", path = "../../core", features = [
164-
"layers-blocking",
165-
] }
166-
pyo3 = { version = "0.23.3", features = ["generate-import-lib"] }
163+
opendal = { version = ">=0", path = "../../core", features = ["layers-blocking"] }
164+
pyo3 = { version = "0.23.3", features = ["extension-module"] }
167165
pyo3-async-runtimes = { version = "0.23.0", features = ["tokio-runtime"] }
168166
tokio = "1"
169167

0 commit comments

Comments
 (0)