pin uv to 0.1.18 (#11598)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
Alex Waygood
2024-03-14 11:46:03 +00:00
committed by GitHub
parent 48106feed7
commit 0f4a2dfec4
2 changed files with 6 additions and 2 deletions

View File

@@ -20,4 +20,4 @@ termcolor>=2.3
tomli==2.0.1
tomlkit==0.12.3
typing_extensions>=4.9.0rc1
uv
uv==0.1.18 # https://github.com/astral-sh/uv/issues/2450

View File

@@ -43,7 +43,11 @@ def run_stubtest(
with tempfile.TemporaryDirectory() as tmp:
venv_dir = Path(tmp)
subprocess.run(["uv", "venv", venv_dir, "--seed"], capture_output=True, check=True)
try:
subprocess.run(["uv", "venv", venv_dir, "--seed"], capture_output=True, check=True)
except subprocess.CalledProcessError as e:
print_command_failure("Failed to create a virtualenv (likely a bug in uv?)", e)
return False
if sys.platform == "win32":
pip_exe = str(venv_dir / "Scripts" / "pip.exe")
python_exe = str(venv_dir / "Scripts" / "python.exe")