Skip to content

Commit 2fbd39b

Browse files
dguidoclaude
andcommitted
fix: correct license field syntax in pyproject.toml
Replace deprecated 'license-files' with proper license field syntax. Use 'license = {text = "SPDX-ID"}' for standard licenses and 'license = {file = "LICENSE"}' for proprietary licenses. This fixes the RUF200 parsing error in generated projects. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 330cbb9 commit 2fbd39b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ name = "{{ cookiecutter.project_slug }}"
33
dynamic = ["version"]
44
description = "{{ cookiecutter.project_description }}"
55
readme = "README.md"
6-
license-files = ["LICENSE"]
7-
86
{%- if cookiecutter.license == "Apache 2.0" %}
9-
license = "Apache-2.0"
7+
license = {text = "Apache-2.0"}
108
{%- elif cookiecutter.license == "AGPL v3" %}
11-
license = "AGPL-3.0-or-later"
9+
license = {text = "AGPL-3.0-or-later"}
1210
{%- elif cookiecutter.license == "Proprietary" %}
13-
license = "LicenseRef-Proprietary-License"
11+
license = {file = "LICENSE"}
1412
{%- endif %}
1513

1614
authors = [

0 commit comments

Comments
 (0)