Skip to content

Commit aec6f48

Browse files
committed
fix: use uv to help build wheels
Thanks obstore!
1 parent b56815e commit aec6f48

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/docs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
fetch-depth: 0 # to get gh-pages
2121
- uses: astral-sh/setup-uv@v3
2222
- uses: Swatinem/rust-cache@v2
23+
- name: Download libduckdb (ubuntu)
24+
run: |
25+
wget https://github.com/duckdb/duckdb/releases/download/v1.1.3/libduckdb-linux-amd64.zip
26+
unzip libduckdb-linux-amd64.zip -d libduckdb
27+
echo "LD_LIBRARY_PATH=libduckdb" >> $GITHUB_ENV
28+
echo "LIBRARY_PATH=libduckdb" >> $GITHUB_ENV
2329
- name: Sync
2430
run: uv sync
2531
- name: Deploy

.github/workflows/pypi.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
linux:
1818
runs-on: ${{ matrix.platform.runner }}
1919
strategy:
20+
fail-fast: false
2021
matrix:
2122
platform:
2223
- runner: ubuntu-latest
@@ -39,14 +40,14 @@ jobs:
3940
manylinux: auto
4041
steps:
4142
- uses: actions/checkout@v4
42-
- uses: actions/setup-python@v5
43-
with:
44-
python-version: 3.x
43+
- uses: astral-sh/setup-uv@v5
44+
- name: Install Python versions
45+
run: uv python install 3.10 3.11 3.12 3.13 pypy3.10
4546
- name: Build wheels
4647
uses: PyO3/maturin-action@v1
4748
with:
4849
target: ${{ matrix.platform.target }}
49-
args: --release --out dist --find-interpreter -F duckdb/bundled
50+
args: --release --out dist -i 3.10 -i 3.11 -i 3.12 -i 3.13 -i pypy3.10 -F duckdb/bundled
5051
sccache: "true"
5152
manylinux: ${{ matrix.platform.manylinux }}
5253
- name: Upload wheels

0 commit comments

Comments
 (0)