Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Dec 23, 2024
1 parent 862b227 commit d19fa82
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,31 +68,33 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: ./.github/actions/setup
- uses: PyO3/maturin-action@v1

# actions/setup-python@v5 doesn't support this yet
- uses: Quansight-Labs/setup-python@v5.3.1
if: ${{ runner.os == 'Windows' }}
with:
working-directory: "bindings/python"
target: "${{ matrix.target }}"
command: build
args: --release -o dist -i python3.11 --features=pyo3/extension-module,services-all,abi3
sccache: true
manylinux: auto
python-version: "3.13t"

- uses: PyO3/maturin-action@v1
name: build abi3-cp311 wheels
with:
working-directory: "bindings/python"
target: "${{ matrix.target }}"
command: build
args: --release -o dist -i python3.10 --features=pyo3/extension-module,services-all
args: --release -o dist -i 3.11 --features=pyo3/extension-module,services-all,abi3
sccache: true
manylinux: auto
- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1

- uses: PyO3/maturin-action@v1
name: build wheels for cp310 and cp313t
with:
working-directory: "bindings/python"
target: "${{ matrix.target }}"
command: build
args: --release -o dist -i python3.13t --features=pyo3/extension-module,services-all
args: --release -o dist -i 3.10 -i 3.13t --features=pyo3/extension-module,services-all
sccache: true
manylinux: auto

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 3 additions & 5 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ services-upyun = ["opendal/services-upyun"]
services-vercel-artifacts = ["opendal/services-vercel-artifacts"]
services-yandex-disk = ["opendal/services-yandex-disk"]
# we build cp311-abi3 and cp310 wheels now, move this to pyo3 after we drop cp310
abi3 = ["pyo3/abi3-py311"]
abi3 = ["pyo3/abi3-py311", "pyo3/generate-import-lib"]

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

Expand Down

0 comments on commit d19fa82

Please sign in to comment.