Skip to content

Commit

Permalink
chore: bring back local build
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 19, 2024
1 parent 7a4cfef commit 680441b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,23 @@ docs-api-preview:
docs-deploy:
quarto publish --no-prompt --no-browser --no-render netlify docs

# build jupyterlite
build-jupyterlite:
# build an ibis_framework wheel that works with pyodide
build-ibis-for-pyodide:
#!/usr/bin/env bash
set -euo pipefail
# TODO(cpcloud): remove when duckdb is distributed with pyodide
jq '{"PipliteAddon": {"piplite_urls": [$duckdb]}}' -nM \
rm -rf dist/
poetry build --format wheel
jq '{"PipliteAddon": {"piplite_urls": [$ibis, $duckdb]}}' -nM \
--arg ibis dist/*.whl \
--arg duckdb "https://duckdb.github.io/duckdb-pyodide/wheels/duckdb-1.1.0-cp312-cp312-pyodide_2024_0_wasm32.whl" \
> docs/jupyter_lite_config.json

# build the jupyterlite deployment
build-jupyterlite: build-ibis-for-pyodide
#!/usr/bin/env bash
set -euo pipefail
mkdir -p docs/_output/jupyterlite
jupyter lite build \
--debug \
Expand Down

0 comments on commit 680441b

Please sign in to comment.