Skip to content

Commit

Permalink
Fixed: license field conforms to pyproject.toml spec. (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Jul 17, 2024
1 parent 27b68f1 commit 002f8ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion comfy_cli/registry/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ def initialize_project_config():
project["name"] = repo_name.lower()
project["description"] = ""
project["version"] = "1.0.0"
project["license"] = "LICENSE"

# Update the license field to comply with pyproject.toml spec
license_table = tomlkit.inline_table()
license_table["file"] = "LICENSE"
project["license"] = license_table

tool = document.get("tool", tomlkit.table())
comfy = tool.get("comfy", tomlkit.table())
Expand Down

0 comments on commit 002f8ba

Please sign in to comment.