Make streamlit an optional dependency - #8
Open
matthiaskoenig wants to merge 2 commits into
Open
Conversation
Move streamlit and pandas out of the core dependencies into a new `app` extra so that CLI and Python API users get a lightweight install. Bump python-libsbml to >=5.21.1 and sbmlutils to >=0.10.2 (sbmlutils 0.10 moved its heavy dependencies to extras). Remove the unused `packaging` dependency. Document the extras in the README. Closes #7 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar3vD2HU6SWKcZoavQL6pz
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ar3vD2HU6SWKcZoavQL6pz
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.
Closes #7
Changes
pyproject.toml: movestreamlitandpandasfromdependenciesinto a newappextra. Core install (CLI + Python API) now only needspython-libsbml,openpyxl,click,python-dateutil,sbmlutils.python-libsbml>=5.21.1andsbmlutils>=0.10.2. sbmlutils 0.10 movedlibroadrunner,matplotlib,py4cytoscapeandcobrato extras, so the transitive install is much lighter. sbmlutils 0.10.2 itself requires libsbml 5.21.1 and pandas 2.2, so the floors are aligned.packagingfrom dependencies (not imported anywhere).README.md: document theapp,apiandtestextras and showpip install -e ".[app]"beforestreamlit run app.py.requirements.txt: same version bumps; still lists streamlit/pandas since Streamlit Cloud reads this file.Verification
pytest test/test_annotations.pypasses,to-sbml/to-tableround trip ontest/Palma2021*works. Without sbmlutils the CLI reports "annotation validation skipped" as before..[app,test](python-libsbml 5.21.1, sbmlutils 0.10.2, pandas 3.0.5, streamlit 1.63): tests pass,mypyclean,sbmlutils.metadata.validator.validate_sbml_annotationssignature unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ar3vD2HU6SWKcZoavQL6pz