From c2631a4e316faf3f8791d6d3c38d04fe745110f6 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 16:35:43 -0400 Subject: [PATCH 1/2] build(test-ray): Migrate from pip to uv Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Refs PY-2473 Co-Authored-By: Claude Opus 4.6 --- test-ray/pyproject.toml | 13 +++++++++++++ test-ray/requirements.txt | 5 ----- test-ray/run.sh | 18 +++++------------- 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 test-ray/pyproject.toml delete mode 100644 test-ray/requirements.txt 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 From 9116f3ee88c445eb13a48f1a6574913e7155dacf Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 21 May 2026 17:31:57 -0400 Subject: [PATCH 2/2] fix python version --- test-ray/.python-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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