Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(planner/python): Implement streamlit support #173

Merged
merged 10 commits into from
Nov 7, 2023
Merged

Conversation

pan93412
Copy link
Member

@pan93412 pan93412 commented Nov 6, 2023

Spec

Discovery behavior

  1. Projects with zbpack.json including {"streamlit": {"entry": "<entry>"}}. will be used.
    • requirements.txt is required if there is no any file named app.py, main.py or streamlit_app.py.
  2. For app.py, main.py, streamlit_app.py files including import streamlit: such file will be used.

Installation behavior

For all Streamlit projects, we install streamlit automatically even there is no requirements.txt.

Launch behavior

We run it with <pkg-manager-pre-args> streamlit run <entry> --server.port=8080 --server.address=0.0.0.0, while 8080 is Zeabur's default listening port.

@pan93412 pan93412 self-assigned this Nov 6, 2023
@pan93412 pan93412 marked this pull request as draft November 6, 2023 09:58
@pan93412 pan93412 changed the title fix(planner/python): RUN echo "skip install" feat(planner/python): Implement streamlit support Nov 6, 2023
@pan93412 pan93412 marked this pull request as ready for review November 6, 2023 10:17
@yuaanlin yuaanlin merged commit e21cb06 into main Nov 7, 2023
7 checks passed
@yuaanlin yuaanlin deleted the pan93412/ZEA-2161 branch November 7, 2023 02:42
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.

2 participants