Skip to content

Use PEP 621 table form for project.license#2

Open
serge-wq wants to merge 1 commit intolyft-stable-1.26.0from
sergiof/pyproject-license-pep621
Open

Use PEP 621 table form for project.license#2
serge-wq wants to merge 1 commit intolyft-stable-1.26.0from
sergiof/pyproject-license-pep621

Conversation

@serge-wq
Copy link
Copy Markdown

@serge-wq serge-wq commented Apr 24, 2026

Summary

  • Replace the PEP 639 shorthand metadata in pyproject.toml with the older PEP 621 table form.

Lyft's s2ipythonlibrary builder venv pins setuptools==70.1.1, whose
pyproject.toml schema validator enforces the pre-PEP-639 `oneOf` rule on
`project.license` and rejects the SPDX shorthand (`license = "MIT"`).
Downgrade the declaration to the PEP 621 table form and drop the PEP 639
`license-files` key so sdist/bdist_wheel succeeds on both old and new
setuptools. The LICENSE file is still shipped through
`setup.cfg` (`license_files = LICENSE`) and the maturin build config
(`[tool.maturin].include = ["LICENSE"]`).

Made-with: Cursor
@serge-wq serge-wq changed the title Use PEP 621 table form for project.license (setuptools<77 compat) Use PEP 621 table form for project.license Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant