mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 01:45:59 +08:00
pin uv to 0.1.18 (#11598)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user