Make the app deployable on Streamlit Community Cloud (deploy prep) - #4
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
-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.Core install stays numpy+scipy+matplotlib; both suites green; classify output byte-identical. No version bump (config-only, no functional change).