From a912cd245b093ea57a187ca66665ca98090a82fd Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 12 Jan 2025 21:25:49 -0800 Subject: [PATCH] Adding WITH_PERMISSION_ONLY list to allowlist There is a TODO to add the functionality of creating the warnings. Change-Id: I1841007158b130a06db22647b1ba50bbaca84b57 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6168291 Reviewed-by: Rachael Newitt Commit-Queue: Jordan Brown --- metadata/fields/custom/license_allowlist.py | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/metadata/fields/custom/license_allowlist.py b/metadata/fields/custom/license_allowlist.py index 58b9e33f5..83bc025fe 100644 --- a/metadata/fields/custom/license_allowlist.py +++ b/metadata/fields/custom/license_allowlist.py @@ -133,5 +133,28 @@ OPEN_SOURCE_SPDX_LICENSES = frozenset([ # go/keep-sorted end ]) +# TODO(b/388620886): Implement warning when changing to or from these licenses +# (but not every time the README.chromium file is modified). +WITH_PERMISSION_ONLY = frozenset([ + # restricted. + # go/keep-sorted start case=no + "CC-BY-SA-3.0", + "GPL-2.0", + "GPL-3.0", + "LGPL-2.0", + "LGPL-2.1", + "LGPL-3.0", + "NPL-1.1", + # go/keep-sorted end + # by_exception_only. + # go/keep-sorted start case=no + "Commercial", + "LicenseRef-Play-Core-SDK-TOS", + "LicenseRef-Unity-Companion-License-1.3", + "Opus-Patent-BSD-3-Clause", + "UnRAR", + # go/keep-sorted end +]) + ALLOWED_LICENSES = ALLOWED_SPDX_LICENSES | EXTENDED_LICENSE_CLASSIFIERS ALLOWED_OPEN_SOURCE_LICENSES = ALLOWED_LICENSES | OPEN_SOURCE_SPDX_LICENSES