diff --git a/test-streamlit/pyproject.toml b/test-streamlit/pyproject.toml new file mode 100644 index 0000000..5476b0a --- /dev/null +++ b/test-streamlit/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "test-streamlit" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "ipdb>=0.13.13", + "numpy>=2.2.4", + "streamlit>=1.43.2", + "sentry-sdk", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-streamlit/requirements.txt b/test-streamlit/requirements.txt deleted file mode 100644 index 4326ea4..0000000 --- a/test-streamlit/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -streamlit -numpy - -ipdb - --e ../../../code/sentry-python # sdk in a sibling folder to this projects folder diff --git a/test-streamlit/run.sh b/test-streamlit/run.sh index 2a4d1ce..9e4fc7b 100755 --- a/test-streamlit/run.sh +++ b/test-streamlit/run.sh @@ -1,14 +1,8 @@ #!/usr/bin/env bash +set -euo pipefail -# exit on first error -set -xe +if ! command -v uv &> /dev/null; then + curl -LsSf https://astral.sh/uv/install.sh | sh +fi -# create and activate virtual environment -python -m venv .venv -source .venv/bin/activate - -# Install (or update) requirements -python -m pip install -r requirements.txt - - -streamlit run main.py +uv run streamlit run main.py