License Expression¶
PEP 639 defined a new pyproject.toml’s license value and added a corresponding core metadata License-Expression field. This specification defines which license expressions are acceptable.
Specification¶
License can be defined as a text string that is a valid SPDX license expression, as documented in the SPDX specification, either Version 2.2 or a later compatible version.
A license expression can use the following license identifiers:
Any SPDX-listed license short-form identifiers that are published in the SPDX License List, version 3.17 or any later compatible version.
The custom LicenseRef-[idstring] string(s), where [idstring] is a unique string containing letters, numbers, . and/or -, to identify licenses that are not included in the SPDX license list. The custom identifiers must follow the SPDX specification, clause 10.1 of the given specification version.
Examples of valid license expressions:
Examples of invalid license expressions: