Skip to content

Clarify license and license-files guidance in writing-pyproject-toml - #2143

Merged
rgommers merged 5 commits into
python:mainfrom
harshitethic:docs/1854-clarify-pep639-fields
Nov 26, 2026
Merged

rgommers merged 5 commits into
python:mainfrom
harshitethic:docs/1854-clarify-pep639-fields

Conversation

@harshitethic

@harshitethic harshitethic commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Clarify two ambiguities in the license / license-files guidance.

  • explain that PEP 639 defines two independent fields with different roles rather than requiring both together
  • correct the setuptools version that introduced SPDX project.license and project.license-files support to 77.0.0
  • make clear these are historical first-support versions, not versions users should pin today

Fixes #1854.


📚 Documentation preview 📚: https://python-packaging-user-guide--2143.org.readthedocs.build/en/2143/

@harshitethic

Copy link
Copy Markdown
Contributor Author

Updated the requested spec links in commit f073eec: the backend-support table and its explanation now refer to the canonical Core Metadata license fields, using the existing <core-metadata-license> cross-reference rather than calling PEP 639 the specification. This follows the review note. AI-assisted edit; full documentation build not yet run.

@rgommers rgommers added type: bug A confirmed bug or unintended behavior component: guides labels Nov 10, 2026

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @harshitethic, this looks reasonable but please address review comments. In addition, I noticed a footnote for flit in that same table about not supporting WITH clauses in SPDX expressions that is no longer accurate - can you remove that as well?

@rgommers

Copy link
Copy Markdown
Contributor

Also please update the PR title, since the setuptools minimum shouldn't be changed.

@rgommers rgommers changed the title docs: clarify PEP 639 license fields and setuptools minimum Clarify license and license-files guidance in writing-pyproject-toml Nov 26, 2026

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the remaining comments. This is only a minor clarification to a guide; in it goes.

@rgommers
rgommers added this pull request to the merge queue Nov 26, 2026
Merged via the queue into python:main with commit db3d537 Nov 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: guides type: bug A confirmed bug or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

minor issues in writing-pyproject-toml

3 participants