@gen3/workspaces 0.12.64 → 0.12.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TODO.md +6 -7
- package/dist/jupyterlite-builds/free-private/jupyter_lite_config.json +5 -19
- package/dist/jupyterlite-builds/free-private/requirements.txt +1 -1
- package/dist/jupyterlite-builds/remote-private/overrides.json +16 -0
- package/dist/jupyterlite-builds/scripts/build-gen3sdk-lite.sh +428 -0
- package/dist/jupyterlite-builds/scripts/build-jupyterlite.sh +150 -33
- package/dist/jupyterlite-builds/scripts/setup-env.sh +81 -0
- package/dist/jupyterlite-builds/scripts/sync-jupyter-assets-into-package.sh +19 -2
- package/dist/jupyterlite-builds/scripts/validate-jupyterlite-assets.sh +3 -0
- package/jupyterlite-builds/free-private/jupyter_lite_config.json +5 -19
- package/jupyterlite-builds/free-private/requirements.txt +1 -1
- package/jupyterlite-builds/remote-private/overrides.json +16 -0
- package/package.json +5 -3
- package/scripts/build-gen3sdk-lite.sh +428 -0
- package/scripts/build-jupyterlite.sh +150 -33
- package/scripts/patch-pyidode-lock.py +100 -0
- package/scripts/setup-env.sh +81 -0
- package/scripts/sync-jupyter-assets-into-package.sh +19 -2
- package/scripts/validate-jupyterlite-assets.sh +3 -0
- package/.jupyterlite.doit.db +0 -0
- package/dist/jupyterlite-builds/scripts/build-gen3sdk-lite_v2.sh +0 -310
- package/dist/jupyterlite-builds/scripts/build-jupyterlite_v2.sh +0 -111
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/aiofiles-25.1.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/backoff-2.2.1-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/cdislogging-1.2.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/comm-0.2.3-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/dataclasses_json-0.5.9-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/dictionaryutils-4.0.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/drsclient-0.4.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/fastavro-1.12.2-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/gen3-4.28.3-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/gen3dictionary-3.0.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/gen3users-1.1.1-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/humanfriendly-10.0-py2.py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/importlib_metadata-8.9.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/indexclient-6.3.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/ipykernel-6.9.2-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/ipython_pygments_lexers-1.1.1-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/marshmallow-3.26.2-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/marshmallow_enum-1.5.1-py2.py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/mypy_extensions-1.1.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/piplite-0.8.5-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/pyodide_http-0.2.2-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/pyodide_kernel-0.8.5-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/pypfb-0.6.2-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/python_dateutil-2.9.0.post0-py2.py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/python_json_logger-4.2.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/typing_inspect-0.9.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/xmltodict-0.13.0-py2.py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_uv_wheels/zipp-4.1.0-py3-none-any.whl +0 -0
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_work/constraints.txt +0 -354
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_work/excludes.txt +0 -3
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_work/pylock.toml +0 -347
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/_work/requirements.in +0 -26
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/patched-pyodide-lock.json +0 -1
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/pyodide-lock.json +0 -1
- package/jupyterlite-builds/free-private/.cache/pyodide-lock/remote-pyodide-lock.json +0 -1
- package/jupyterlite-builds/free-private/.cache/wheels/aiofiles-25.1.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/backoff-2.2.1-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/cdislogging-1.2.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/dataclasses_json-0.5.9-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/dictionaryutils-4.0.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/drsclient-0.4.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/fastavro-1.12.2-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/gen3-4.28.3-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/gen3dictionary-3.0.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/gen3users-1.1.1-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/humanfriendly-10.0-py2.py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/importlib_metadata-8.9.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/indexclient-6.3.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/marshmallow-3.26.2-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/marshmallow_enum-1.5.1-py2.py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/mypy_extensions-1.1.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/pypfb-0.6.2-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/python_dateutil-2.9.0.post0-py2.py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/python_json_logger-4.2.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/typing_inspect-0.9.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/xmltodict-0.13.0-py2.py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/.cache/wheels/zipp-4.1.0-py3-none-any.whl.meta.json +0 -24
- package/jupyterlite-builds/free-private/cockle-config.json +0 -71
- package/jupyterlite-builds/free-private/cockle_wasm_env/.mambarc +0 -1
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/coreutils.js +0 -5421
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/coreutils.wasm +0 -0
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/fs.d.ts +0 -375
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/fs.js +0 -3401
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/fs.wasm +0 -0
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/grep.js +0 -3839
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/grep.wasm +0 -0
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/less.data +0 -0
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/less.js +0 -5060
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/less.wasm +0 -0
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/sed.js +0 -3843
- package/jupyterlite-builds/free-private/cockle_wasm_env/bin/sed.wasm +0 -0
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/cockle_fs-0.3.0-h27506cd_2.json +0 -60
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/coreutils-9.10-h072c4ef_3.json +0 -52
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/emscripten-abi-4.0.9-h267e887_9.json +0 -31
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/grep-3.12-h8b79025_0.json +0 -52
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/history +0 -10
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/less-693-hf259948_0.json +0 -60
- package/jupyterlite-builds/free-private/cockle_wasm_env/conda-meta/sed-4.9-h072c4ef_0.json +0 -52
- package/scripts/aiohttp-3.13.5-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
- package/scripts/build-gen3sdk-lite_v2.sh +0 -310
- package/scripts/build-jupyterlite_v2.sh +0 -111
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# =============================================================================
|
|
3
|
-
# build-jupyterlite.sh — Build a JupyterLite site (free or remote tier)
|
|
4
|
-
#
|
|
5
|
-
# Sources setup-env.sh so the venv, Python version, and tooling are identical
|
|
6
|
-
# to those used by build-gen3sdk-lite.sh.
|
|
7
|
-
#
|
|
8
|
-
# Usage:
|
|
9
|
-
# ./build-jupyterlite.sh <tier> [build_dir]
|
|
10
|
-
# tier: 'free' or 'remote'
|
|
11
|
-
# =============================================================================
|
|
12
|
-
set -euo pipefail
|
|
13
|
-
|
|
14
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
15
|
-
|
|
16
|
-
usage() {
|
|
17
|
-
echo "Usage: $0 <tier> [build_dir]"
|
|
18
|
-
echo " tier: 'free' or 'remote'"
|
|
19
|
-
exit 1
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
TIER="${1:-}"
|
|
23
|
-
if [[ "$TIER" != "free" && "$TIER" != "remote" ]]; then
|
|
24
|
-
usage
|
|
25
|
-
fi
|
|
26
|
-
|
|
27
|
-
# ── Derive SRC_DIR before sourcing shared env ────────────────────────────────
|
|
28
|
-
# setup-env.sh respects pre-set ROOT_DIR / SRC_DIR / BUILD_DIR.
|
|
29
|
-
export ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
30
|
-
|
|
31
|
-
if [[ "$TIER" == "free" ]]; then
|
|
32
|
-
export SRC_DIR="$ROOT_DIR/free-private"
|
|
33
|
-
else
|
|
34
|
-
export SRC_DIR="$ROOT_DIR/remote-private"
|
|
35
|
-
fi
|
|
36
|
-
|
|
37
|
-
# Allow caller to override BUILD_DIR via the second positional arg.
|
|
38
|
-
if [[ -n "${2:-}" ]]; then
|
|
39
|
-
export BUILD_DIR="$2"
|
|
40
|
-
fi
|
|
41
|
-
|
|
42
|
-
# ── Source shared environment (creates/reuses the venv) ──────────────────────
|
|
43
|
-
# After this: VENV_DIR, OUTPUT_DIR, BUILD_DIR, etc. are set and the venv is
|
|
44
|
-
# active with the same Python version + core tooling as build-gen3sdk-lite.
|
|
45
|
-
# shellcheck disable=SC1091
|
|
46
|
-
source "${SCRIPT_DIR}/setup-env.sh"
|
|
47
|
-
|
|
48
|
-
# ── JupyterLite-specific tooling ────────────────────────────────────────────
|
|
49
|
-
CONFIG_FILE="$SRC_DIR/jupyter_lite_config.json"
|
|
50
|
-
REQUIREMENTS_FILE="$SRC_DIR/requirements.txt"
|
|
51
|
-
VENV_JUPYTER_LITE="$VENV_DIR/bin/jupyter-lite"
|
|
52
|
-
PYPI="$OUTPUT_DIR" # wheels built by build-gen3sdk-lite land here
|
|
53
|
-
|
|
54
|
-
if [[ ! -f "$REQUIREMENTS_FILE" ]]; then
|
|
55
|
-
echo "Missing requirements file: $REQUIREMENTS_FILE"
|
|
56
|
-
exit 1
|
|
57
|
-
fi
|
|
58
|
-
|
|
59
|
-
# Install JupyterLite requirements into the shared venv (uv for speed).
|
|
60
|
-
info "Installing JupyterLite requirements …"
|
|
61
|
-
uv pip install -r "$REQUIREMENTS_FILE" 2>&1 | tail -5
|
|
62
|
-
success "JupyterLite requirements installed"
|
|
63
|
-
|
|
64
|
-
if [[ ! -x "$VENV_JUPYTER_LITE" ]]; then
|
|
65
|
-
echo "jupyter-lite executable not found in $VENV_DIR after dependency install."
|
|
66
|
-
exit 1
|
|
67
|
-
fi
|
|
68
|
-
|
|
69
|
-
# ── Build ────────────────────────────────────────────────────────────────────
|
|
70
|
-
if [[ "$TIER" == "free" ]]; then
|
|
71
|
-
|
|
72
|
-
# Patch config to use the absolute pypi path so jupyter-lite can find the
|
|
73
|
-
# custom wheels built by build-gen3sdk-lite.
|
|
74
|
-
PATCHED_CONFIG="$BUILD_DIR/jupyter_lite_config.json"
|
|
75
|
-
python - <<PYEOF
|
|
76
|
-
import json
|
|
77
|
-
|
|
78
|
-
with open('$CONFIG_FILE') as fh:
|
|
79
|
-
cfg = json.load(fh)
|
|
80
|
-
|
|
81
|
-
addon = cfg.get('PyodideLockAddon', {})
|
|
82
|
-
if 'wheels' in addon:
|
|
83
|
-
addon['wheels'] = ['$PYPI/']
|
|
84
|
-
cfg['PyodideLockAddon'] = addon
|
|
85
|
-
|
|
86
|
-
with open('$PATCHED_CONFIG', 'w') as fh:
|
|
87
|
-
json.dump(cfg, fh, indent=2)
|
|
88
|
-
PYEOF
|
|
89
|
-
|
|
90
|
-
info "Looking for wheels in $PYPI"
|
|
91
|
-
WHEEL_ARGS=()
|
|
92
|
-
if [[ -d "$PYPI" ]]; then
|
|
93
|
-
while IFS= read -r -d '' whl; do
|
|
94
|
-
WHEEL_ARGS+=(--piplite-wheels "$whl")
|
|
95
|
-
done < <(find "$PYPI" -maxdepth 1 -name "*.whl" -print0 | sort -z)
|
|
96
|
-
fi
|
|
97
|
-
|
|
98
|
-
info "Running: jupyter-lite build (free tier, ${#WHEEL_ARGS[@]} custom wheels)"
|
|
99
|
-
"$VENV_JUPYTER_LITE" build \
|
|
100
|
-
--config "$PATCHED_CONFIG" \
|
|
101
|
-
--lite-dir "$SRC_DIR" ${WHEEL_ARGS[@]+"${WHEEL_ARGS[@]}"} \
|
|
102
|
-
--output-dir "$BUILD_DIR/$TIER"
|
|
103
|
-
else
|
|
104
|
-
info "Running: jupyter-lite build (remote tier)"
|
|
105
|
-
"$VENV_JUPYTER_LITE" build \
|
|
106
|
-
--config "$CONFIG_FILE" \
|
|
107
|
-
--lite-dir "$SRC_DIR" \
|
|
108
|
-
--output-dir "$BUILD_DIR/$TIER"
|
|
109
|
-
fi
|
|
110
|
-
|
|
111
|
-
success "$TIER-tier JupyterLite build complete: $BUILD_DIR/$TIER"
|