fix: correct module-name type in pyproject.toml #774
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Running
make preparefails with a TOML parse error:error: Failed to parse: pyproject.toml
Caused by: TOML parse error at line 52, column 15
|
52 | module-name = ["kimi_cli"]
| ^^^^^^^^^^^^
invalid type: sequence, expected a string
The uv build backend expects
module-nameto be a string, not a sequence.This error was present in all workspace packages.
Related Issue
N/A - This is a straightforward configuration bug fix discovered during setup.
Description
Changed
module-namein[tool.uv.build-backend]section from array format to string format across all workspace packages.Changes:
pyproject.toml:module-name = ["kimi_cli"]→module-name = "kimi_cli"packages/kaos/pyproject.toml:module-name = ["kaos"]→module-name = "kaos"packages/kimi-code/pyproject.toml:module-name = ["kimi_code"]→module-name = "kimi_code"packages/kosong/pyproject.toml:module-name = ["kosong"]→module-name = "kosong"sdks/kimi-sdk/pyproject.toml:module-name = ["kimi_sdk"]→module-name = "kimi_sdk"Testing
After this fix,
make preparecompletes successfully without TOML parse errors.