Add an open source only licenses set.

This is a list of licenses classified as 'reciprocal'. Due to the requirements of licenses of this type we can only allow their use in open source projects. This change introduces the variable 'OPEN_SOURCE_SPDX_LICENSES' with an initial set of reciprocal licenses currently used in chromium.

Change-Id: I376a7623e3685d67edd63ceb3088ca68c9d2fb7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6107860
Reviewed-by: Rachael Newitt <renewitt@google.com>
Commit-Queue: Jordan Brown <rop@google.com>
This commit is contained in:
Jordan Brown
2025-01-08 23:54:11 -08:00
committed by LUCI CQ
parent ec23ea2c79
commit af68505dfe

View File

@@ -109,4 +109,18 @@ EXTENDED_LICENSE_CLASSIFIERS = frozenset([
"zxing",
])
# These licenses are only allowed in open source projects due to their
# reciprocal requirements. TODO(b/385020146): Enforce this restriction.
OPEN_SOURCE_SPDX_LICENSES = frozenset([
# reciprocal.
"APSL-2.0",
"CDDL-1.0",
"CDDL-1.1",
"CPL-1.0",
"EPL-1.0",
"MPL-1.1",
"MPL-2.0",
])
ALLOWED_LICENSES = ALLOWED_SPDX_LICENSES | EXTENDED_LICENSE_CLASSIFIERS
ALLOWED_OPEN_SOURCE_LICENSES = ALLOWED_LICENSES | OPEN_SOURCE_SPDX_LICENSES