diff --git a/test-structlog-sentry/pyproject.toml b/test-structlog-sentry/pyproject.toml new file mode 100644 index 0000000..1add3ee --- /dev/null +++ b/test-structlog-sentry/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "test-structlog-sentry" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "ipdb>=0.13.13", + "structlog-sentry>=2.2.1", + "sentry-sdk", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-structlog-sentry/requirements.txt b/test-structlog-sentry/requirements.txt deleted file mode 100644 index 0cbe7a4..0000000 --- a/test-structlog-sentry/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -structlog-sentry - -ipdb - --e ../../../code/sentry-python # sdk in a sibling folder to this projects folder diff --git a/test-structlog-sentry/run.sh b/test-structlog-sentry/run.sh index 0994a05..f283b88 100755 --- a/test-structlog-sentry/run.sh +++ b/test-structlog-sentry/run.sh @@ -1,16 +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 -reset - -# create and activate virtual environment -python -m venv .venv -source .venv/bin/activate - -# Install (or update) requirements -python -m pip install -r requirements.txt - -# Run app -python main.py \ No newline at end of file +uv run python main.py