Skip to content

Make the app deployable on Streamlit Community Cloud (deploy prep) - #4

Merged
HeliCorgi merged 1 commit into
mainfrom
feat/streamlit-deploy
Jun 30, 2026
Merged

Make the app deployable on Streamlit Community Cloud (deploy prep)#4
HeliCorgi merged 1 commit into
mainfrom
feat/streamlit-deploy

Conversation

@HeliCorgi

Copy link
Copy Markdown
Owner

Add the repo-root files Streamlit Community Cloud needs; no code or core-output changes (the app already resolved examples/ via file and never imports yupi).

  • requirements.txt: -e .[gui] -- installs the package + its gui extra (numpy, scipy, matplotlib, streamlit + kernel_viewer/stateflow) the way the cloud does (pip install -r requirements.txt). Verified in a FRESH venv: installs cleanly, imports OK, and app.analyze runs end-to-end with the example dropdown finding examples/*.npz. yupi is intentionally excluded (the deployed app loads committed npz, never generates). The explicit non-editable fallback list is documented in a comment in case a cloud image rejects the editable install.
  • runtime.txt: python-3.12 (>= the package's requires-python).
  • Verified import hygiene: app imports in ~0.3s with no heavy top-level work and with yupi import blocked; example paths resolve from file, CWD-independent.
  • README: a short "Deploy (Streamlit Community Cloud)" note (point a new app at app/streamlit_app.py on main).

Core install stays numpy+scipy+matplotlib; both suites green; classify output byte-identical. No version bump (config-only, no functional change).

Add the repo-root files Streamlit Community Cloud needs; no code or core-output
changes (the app already resolved examples/ via __file__ and never imports yupi).

- requirements.txt: `-e .[gui]` -- installs the package + its gui extra (numpy,
  scipy, matplotlib, streamlit + kernel_viewer/stateflow) the way the cloud does
  (`pip install -r requirements.txt`). Verified in a FRESH venv: installs cleanly,
  imports OK, and app.analyze runs end-to-end with the example dropdown finding
  examples/*.npz. yupi is intentionally excluded (the deployed app loads committed
  npz, never generates). The explicit non-editable fallback list is documented in
  a comment in case a cloud image rejects the editable install.
- runtime.txt: python-3.12 (>= the package's requires-python).
- Verified import hygiene: app imports in ~0.3s with no heavy top-level work and
  with yupi import blocked; example paths resolve from __file__, CWD-independent.
- README: a short "Deploy (Streamlit Community Cloud)" note (point a new app at
  app/streamlit_app.py on main).

Core install stays numpy+scipy+matplotlib; both suites green; classify output
byte-identical. No version bump (config-only, no functional change).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HeliCorgi
HeliCorgi merged commit cfd22c6 into main Jun 30, 2026
4 checks passed
@HeliCorgi
HeliCorgi deleted the feat/streamlit-deploy branch June 30, 2026 18:13
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