Update project.license to PEP 639 SPDX string form #24
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/zaojun#24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
pyproject.tomlcurrently uses the legacy table form:PEP 639 specifies that
licenseshould be a plain SPDX expression string:This is also the form that zaojun itself recommends (and that
read_project_licensetreats as canonical) when auto-deriving the allowed license set from a project's ownpyproject.toml.Two-line change in
pyproject.toml:license = { text = "AGPL-3.0-or-later" }withlicense = "AGPL-3.0-or-later"license-files = ["LICENSE.md"]No code changes — only
pyproject.tomlis touched. The existingpysentryanddeptrychecks should continue to pass.