fix(install): pin click+shellingham in no-torch-runtime.txt

install.sh / install.ps1 install no-torch-runtime.txt with --no-deps,
which means typer's runtime dependencies (click, shellingham) never
land. On Linux/Mac CI click happens to be cached transitively from
previous jobs in the runner image; on a fresh windows-latest venv
unsloth studio setup fails the very first time it runs:

  Traceback (most recent call last):
    File ".../unsloth/__main__.py", line 4, in <module>
      from unsloth_cli import app
    File ".../unsloth_cli/__init__.py", line 4, in <module>
      import typer
    File ".../typer/__init__.py", line 7, in <module>
      from click.exceptions import Abort as Abort
  ModuleNotFoundError: No module named 'click'

Pin click and shellingham explicitly so the no-torch path works on
every fresh venv, on every OS.
This commit is contained in:
Daniel Han 2026-05-07 10:06:12 +00:00
commit 13f79e4d6c

View file

@ -8,6 +8,13 @@
# unsloth direct deps (from pyproject.toml [project].dependencies)
typer
# typer's runtime deps. Required explicitly because this file is
# installed with --no-deps. On Linux/Mac CI runners click is often
# already cached from previous jobs; on a fresh windows-latest venv
# it is not, and `unsloth studio setup` fails immediately with
# `ModuleNotFoundError: No module named 'click'`.
click>=8.0
shellingham>=1.5
pydantic
pyyaml
nest-asyncio