- Install
uv - Install dependencies
$ uv sync
- Install pre-commit
$ pre-commit install
- Edit
streamlit_webrtc/component.pyto set_RELEASE = Falsein order to show the frontend view served from a development server as below instead of the production build.- Do not commit this change. This setting is only for development.
- If
_RELEASE = Falseis set, the build command fails, which is described in the next section. See thebuildrule inMakefileandrelease_check.pyfor the details.
- Run the frontend dev server
$ cd streamlit_webrtc/frontend $ pnpm dev - In another shell, run
app.py$ streamlit run home.py
- All contributors: Run
scriv create(scriv create --editto open an editor) to create a changelog fragment (changelog.d/*.md), fill it to describe the changes you made, and commit it. You should add a fragment for each pull request describing the changes made in the PR. - Maintainers: CI creates a PR to review the changelog collected from the committed fragments when a commit including changelog fragments is pushed to
main. When to release, after reviewing the changelog preview PR, merge it tomain. This triggers another CI/CD process that creates a new release with an updated changelog based on the merged changelog preview PR.
The following command is run to build the package during the automated release process in CI/CD described above. When you want to run the build locally for development or test, you can directly use this command.
$ make build