From 98bb157ad95509161b4c5b7e93b34a6be60eae6d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 7 Jun 2024 12:09:58 +1000 Subject: [PATCH] License headers: add SPDX header Also include "addons_core" in license check. --- scripts/addons_core/bl_pkg/example_extension/__init__.py | 2 ++ .../addons_core/bl_pkg/extensions_map_from_legacy_addons.py | 4 ++++ tools/check_source/check_licenses.py | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/addons_core/bl_pkg/example_extension/__init__.py b/scripts/addons_core/bl_pkg/example_extension/__init__.py index 6cff06cebf5..94ba28f8377 100644 --- a/scripts/addons_core/bl_pkg/example_extension/__init__.py +++ b/scripts/addons_core/bl_pkg/example_extension/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Blender Foundation +# # SPDX-License-Identifier: GPL-2.0-or-later def register(): diff --git a/scripts/addons_core/bl_pkg/extensions_map_from_legacy_addons.py b/scripts/addons_core/bl_pkg/extensions_map_from_legacy_addons.py index 0121f3229d7..5d473c42088 100644 --- a/scripts/addons_core/bl_pkg/extensions_map_from_legacy_addons.py +++ b/scripts/addons_core/bl_pkg/extensions_map_from_legacy_addons.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Blender Foundation +# +# SPDX-License-Identifier: GPL-2.0-or-later + # This is a data file that is evaluated directly (not imported). # NOTE: this can be removed once upgrading from 4.1 is no longer relevant. { diff --git a/tools/check_source/check_licenses.py b/tools/check_source/check_licenses.py index 4d9f24a5d74..8ae45f88958 100644 --- a/tools/check_source/check_licenses.py +++ b/tools/check_source/check_licenses.py @@ -540,7 +540,6 @@ def main() -> None: "./lib", # Just data. "./doc/python_api/examples", - "./scripts/addons_core", "./scripts/presets", "./scripts/templates_py",