Skip to content

fix(explorer): make uv sync install the web deps for Streamlit Cloud#42

Merged
zsarnoczay merged 2 commits into
NHERI-SimCenter:mainfrom
zsarnoczay:main
Jul 14, 2026
Merged

fix(explorer): make uv sync install the web deps for Streamlit Cloud#42
zsarnoczay merged 2 commits into
NHERI-SimCenter:mainfrom
zsarnoczay:main

Conversation

@zsarnoczay

Copy link
Copy Markdown
Collaborator

Streamlit Community Cloud installs deps with uv sync when a uv.lock is present
(it ignores requirements.txt), and uv sync pulls the base package + default
groups but NOT optional-dependency extras -- so the deployed app got the core
library without Streamlit/scipy/etc. and crashed on import scipy.

Add a deploy default dependency-group referencing the explorer extra (single
source of truth) so a plain uv sync installs the web stack. Dependency groups
are dev-time only, so pip install simcenter-dlml stays lightweight (verified:
scipy/streamlit appear only under extras in the wheel metadata).

Streamlit Community Cloud installs deps with `uv sync` when a uv.lock is present
(it ignores requirements.txt), and `uv sync` pulls the base package + default
groups but NOT optional-dependency extras -- so the deployed app got the core
library without Streamlit/scipy/etc. and crashed on `import scipy`.

Add a `deploy` default dependency-group referencing the `explorer` extra (single
source of truth) so a plain `uv sync` installs the web stack. Dependency groups
are dev-time only, so `pip install simcenter-dlml` stays lightweight (verified:
scipy/streamlit appear only under extras in the wheel metadata).
@zsarnoczay
zsarnoczay merged commit 6e022b9 into NHERI-SimCenter:main Jul 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant