Kokoro-FastAPI icon indicating copy to clipboard operation
Kokoro-FastAPI copied to clipboard

Update torch source markers in pyproject.toml

Open JanWerder opened this issue 1 month ago • 0 comments

Made the CPU/GPU markers mutually exclusive (extra == 'cpu' and extra != 'gpu' / extra == 'gpu' and extra != 'cpu') to satisfy uv’s “disjoint markers” requirement and let uv sync --extra cpu|gpu pick the right PyTorch index.

Fixes the following error when running uv sync:

error: Failed to parse: `pyproject.toml`
    Caused by: TOML parse error at line 62, column 30
     |
  62 |     { index = "pytorch-cpu", extra = "cpu" },
     |                              ^^^^^
  unknown field `extra`, expected one of `git`, `subdirectory`, `rev`, `tag`, `branch`, `url`, `path`, `editable`, `index`, `workspace`, `marker`

JanWerder avatar Nov 26 '25 11:11 JanWerder