diff --git a/test-ray/.python-version b/test-ray/.python-version index c8cfe39..6324d40 100644 --- a/test-ray/.python-version +++ b/test-ray/.python-version @@ -1 +1 @@ -3.10 +3.14 diff --git a/test-ray/pyproject.toml b/test-ray/pyproject.toml new file mode 100644 index 0000000..f5b2a2c --- /dev/null +++ b/test-ray/pyproject.toml @@ -0,0 +1,13 @@ +[project] +name = "test-ray" +version = "0" +requires-python = ">=3.12" + +dependencies = [ + "ipdb>=0.13.13", + "ray>=2.46.0", + "sentry-sdk", +] + +[tool.uv.sources] +sentry-sdk = { path = "../../sentry-python", editable = true } diff --git a/test-ray/requirements.txt b/test-ray/requirements.txt deleted file mode 100644 index 80075a1..0000000 --- a/test-ray/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -ray - -ipdb - --e ../../../code/sentry-python # sdk in a sibling folder to this projects folder diff --git a/test-ray/run.sh b/test-ray/run.sh index cce6338..f283b88 100755 --- a/test-ray/run.sh +++ b/test-ray/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 ray app -python main.py \ No newline at end of file +uv run python main.py