Skip to content

Commit ee46d0a

Browse files
authored
fix: bundle duckdb for wheels (#618)
1 parent 5b77064 commit ee46d0a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/python-cli.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: PyO3/maturin-action@v1
3737
with:
3838
target: ${{ matrix.platform.target }}
39-
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml
39+
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml -F duckdb/bundled
4040
sccache: "true"
4141
manylinux: auto
4242
- name: Upload wheels
@@ -67,7 +67,7 @@ jobs:
6767
uses: PyO3/maturin-action@v1
6868
with:
6969
target: ${{ matrix.platform.target }}
70-
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml
70+
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml -F duckdb/bundled
7171
sccache: "true"
7272
manylinux: musllinux_1_2
7373
- name: Upload wheels
@@ -95,7 +95,7 @@ jobs:
9595
uses: PyO3/maturin-action@v1
9696
with:
9797
target: ${{ matrix.platform.target }}
98-
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml
98+
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml -F duckdb/bundled
9999
sccache: "true"
100100
- name: Upload wheels
101101
uses: actions/upload-artifact@v4
@@ -121,7 +121,7 @@ jobs:
121121
uses: PyO3/maturin-action@v1
122122
with:
123123
target: ${{ matrix.platform.target }}
124-
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml
124+
args: --release --out dist --find-interpreter --manifest-path crates/cli/Cargo.toml -F duckdb/bundled
125125
sccache: "true"
126126
- name: Upload wheels
127127
uses: actions/upload-artifact@v4

crates/cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ python = ["dep:pyo3", "pgstac"]
2020
anyhow.workspace = true
2121
axum.workspace = true
2222
clap = { workspace = true, features = ["derive"] }
23+
duckdb.workspace = true # we depend on it directly so that we can bundle it for the Python wheels
2324
object_store.workspace = true
2425
pyo3 = { workspace = true, optional = true }
2526
reqwest.workspace = true

crates/cli/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use anyhow::{anyhow, Error, Result};
22
use clap::{Parser, Subcommand};
3+
use duckdb as _;
34
use stac::{geoparquet::Compression, Collection, Format, Item, Links, Migrate, Validate};
45
use stac_api::{GetItems, GetSearch, Search};
56
use stac_server::Backend;

0 commit comments

Comments
 (0)