Skip to content

Commit f8eacbb

Browse files
authored
build(test-ray): Migrate from pip to uv (#46)
Replace requirements.txt with pyproject.toml and update run.sh to use uv for dependency management and script execution. Fixes PY-2473
1 parent a05d8b2 commit f8eacbb

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

test-ray/.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.14

test-ray/pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[project]
2+
name = "test-ray"
3+
version = "0"
4+
requires-python = ">=3.12"
5+
6+
dependencies = [
7+
"ipdb>=0.13.13",
8+
"ray>=2.46.0",
9+
"sentry-sdk",
10+
]
11+
12+
[tool.uv.sources]
13+
sentry-sdk = { path = "../../sentry-python", editable = true }

test-ray/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

test-ray/run.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
#!/usr/bin/env bash
2+
set -euo pipefail
23

3-
# exit on first error
4-
set -xe
4+
if ! command -v uv &> /dev/null; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
fi
57

6-
reset
7-
8-
# create and activate virtual environment
9-
python -m venv .venv
10-
source .venv/bin/activate
11-
12-
# Install (or update) requirements
13-
python -m pip install -r requirements.txt
14-
15-
# Run ray app
16-
python main.py
8+
uv run python main.py

0 commit comments

Comments
 (0)