Skip to content

Support SPDX WITH expressions - #809

Open
yangfan-yf-yf wants to merge 2 commits into
pypa:mainfrom
yangfan-yf-yf:fix/spdx-with-exceptions
Open

Support SPDX WITH expressions#809
yangfan-yf-yf wants to merge 2 commits into
pypa:mainfrom
yangfan-yf-yf:fix/spdx-with-exceptions

Conversation

@yangfan-yf-yf

@yangfan-yf-yf yangfan-yf-yf commented Jul 23, 2026

Copy link
Copy Markdown

Closes #735.

This adds SPDX exception IDs for WITH expressions. The parser now normalises exception IDs, retains the existing uppercase-operator rule, and rejects a second WITH after an exception ID.

The generated license data remains aligned with SPDX v3.26, which matches the version already used for the existing license IDs; this change adds only exception IDs.

Validation:

  • python -m pytest flit_core/tests_core -q with PYTHONPATH=flit_core (216 passed, 1 skipped)
  • Boundary checks for case normalisation and repeated WITH

@yangfan-yf-yf
yangfan-yf-yf marked this pull request as ready for review July 23, 2026 15:02
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.

Support WITH in SPDX license expressions

1 participant