Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f4a2df

Browse files
AlexWaygoodsrittau
andauthored
pin uv to 0.1.18 (#11598)
Co-authored-by: Sebastian Rittau <[email protected]>
1 parent 48106fe commit 0f4a2df

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ termcolor>=2.3
2020
tomli==2.0.1
2121
tomlkit==0.12.3
2222
typing_extensions>=4.9.0rc1
23-
uv
23+
uv==0.1.18 # https://github.com/astral-sh/uv/issues/2450

tests/stubtest_third_party.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ def run_stubtest(
4343

4444
with tempfile.TemporaryDirectory() as tmp:
4545
venv_dir = Path(tmp)
46-
subprocess.run(["uv", "venv", venv_dir, "--seed"], capture_output=True, check=True)
46+
try:
47+
subprocess.run(["uv", "venv", venv_dir, "--seed"], capture_output=True, check=True)
48+
except subprocess.CalledProcessError as e:
49+
print_command_failure("Failed to create a virtualenv (likely a bug in uv?)", e)
50+
return False
4751
if sys.platform == "win32":
4852
pip_exe = str(venv_dir / "Scripts" / "pip.exe")
4953
python_exe = str(venv_dir / "Scripts" / "python.exe")

0 commit comments

Comments
 (0)