Skip to content

Commit 3b7f860

Browse files
committed
fix ray uv
1 parent dcd3698 commit 3b7f860

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/populate_tox/tox.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ setenv =
185185
django: DJANGO_SETTINGS_MODULE=tests.integrations.django.myapp.settings
186186
spark-v{3.0.3,3.5.6}: JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64
187187
188+
# Ray 2.43+ auto-detects `uv run` drivers and spawns workers via uv,
189+
# which targets the workspace `.venv` instead of the tox env and hangs.
190+
ray: RAY_ENABLE_UV_RUN_RUNTIME_ENV=0
191+
188192
# Avoid polluting test suite with imports
189193
common: PYTEST_ADDOPTS="--ignore=tests/test_shadowed_module.py"
190194
gevent: PYTEST_ADDOPTS="--ignore=tests/test_shadowed_module.py"

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,10 @@ setenv =
988988
django: DJANGO_SETTINGS_MODULE=tests.integrations.django.myapp.settings
989989
spark-v{3.0.3,3.5.6}: JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64
990990

991+
# Ray 2.43+ auto-detects `uv run` drivers and spawns workers via uv,
992+
# which targets the workspace `.venv` instead of the tox env and hangs.
993+
ray: RAY_ENABLE_UV_RUN_RUNTIME_ENV=0
994+
991995
# Avoid polluting test suite with imports
992996
common: PYTEST_ADDOPTS="--ignore=tests/test_shadowed_module.py"
993997
gevent: PYTEST_ADDOPTS="--ignore=tests/test_shadowed_module.py"

0 commit comments

Comments
 (0)