Skip to content

Commit 643dead

Browse files
authored
fix: duckdb extension grabs (#245)
1 parent 7b7e77f commit 643dead

5 files changed

Lines changed: 28 additions & 9 deletions

File tree

.github/workflows/duckdb-extensions.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v6
2525
- uses: astral-sh/setup-uv@v7
26-
- name: Install Python
27-
run: uv python install 3.11
2826
- name: Build wheel
29-
run: |
30-
uv pip install hatchling wheel --system
31-
cd duckdb-extensions/scripts
32-
python build_wheel.py ${{ matrix.duckdb-platform }}
27+
run: uv run --only-group build duckdb-extension/scripts/build_wheel.py ${{ matrix.duckdb-platform }}
3328
- name: Upload wheels
3429
uses: actions/upload-artifact@v6
3530
with:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

duckdb-extensions/scripts/download_extensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def download_extensions(platform: str) -> None:
3030
url = f"{BASE_URL}/{DUCKDB_VERSION}/{platform}/{ext}.duckdb_extension.gz"
3131
output_path = output_dir / f"{ext}.duckdb_extension"
3232
print(f"Downloading {url}")
33-
response = urllib.request.urlopen(url) # noqa: S310
33+
request = urllib.request.Request(url, headers={"User-Agent": "rustac"})
34+
response = urllib.request.urlopen(request) # noqa: S310
3435
compressed = response.read()
3536
decompressed = gzip.decompress(compressed)
3637
output_path.write_bytes(decompressed)

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ exclude = [
5858

5959

6060
[dependency-groups]
61+
build = [
62+
"wheel>=0.46.3",
63+
]
6164
dev = [
6265
"geopandas>=1.0.1",
6366
"maturin>=1.7.4",

uv.lock

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)