[Bf-blender-cvs] [f7bbec290dc] master: File headers: add license to Python scripts

Campbell Barton noreply at git.blender.org
Fri Feb 11 05:17:02 CET 2022


Commit: f7bbec290dc750cb146408c6e9098673f34c29c3
Author: Campbell Barton
Date:   Fri Feb 11 14:30:11 2022 +1100
Branches: master
https://developer.blender.org/rBf7bbec290dc750cb146408c6e9098673f34c29c3

File headers: add license to Python scripts

===================================================================

M	build_files/cmake/cmake_consistency_check_config.py
M	build_files/package_spec/build_archive.py
M	build_files/utils/make_source_archive.py
M	build_files/utils/make_test.py
M	build_files/utils/make_update.py
M	build_files/utils/make_utils.py
M	release/lts/create_download_urls.py
M	release/lts/create_release_notes.py
M	release/scripts/modules/rna_manual_reference.py
M	source/blender/makesrna/rna_cleanup/rna_cleaner.py
M	source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
M	tests/python/view_layer/test_active_collection.py
M	tests/python/view_layer/test_background_set.py
M	tests/python/view_layer/test_collection_new_sync.py
M	tests/python/view_layer/test_collection_rename_a.py
M	tests/python/view_layer/test_collection_rename_b.py
M	tests/python/view_layer/test_evaluation_render_settings_a.py
M	tests/python/view_layer/test_evaluation_render_settings_b.py
M	tests/python/view_layer/test_evaluation_render_settings_c.py
M	tests/python/view_layer/test_evaluation_render_settings_d.py
M	tests/python/view_layer/test_evaluation_render_settings_e.py
M	tests/python/view_layer/test_evaluation_render_settings_f.py
M	tests/python/view_layer/test_evaluation_render_settings_g.py
M	tests/python/view_layer/test_evaluation_render_settings_h.py
M	tests/python/view_layer/test_evaluation_render_settings_i.py
M	tests/python/view_layer/test_evaluation_selectability_a.py
M	tests/python/view_layer/test_evaluation_selectability_b.py
M	tests/python/view_layer/test_evaluation_selectability_c.py
M	tests/python/view_layer/test_evaluation_selectability_d.py
M	tests/python/view_layer/test_evaluation_selectability_e.py
M	tests/python/view_layer/test_evaluation_selectability_f.py
M	tests/python/view_layer/test_evaluation_visibility_a.py
M	tests/python/view_layer/test_evaluation_visibility_b.py
M	tests/python/view_layer/test_evaluation_visibility_c.py
M	tests/python/view_layer/test_evaluation_visibility_d.py
M	tests/python/view_layer/test_evaluation_visibility_e.py
M	tests/python/view_layer/test_evaluation_visibility_f.py
M	tests/python/view_layer/test_evaluation_visibility_g.py
M	tests/python/view_layer/test_evaluation_visibility_h.py
M	tests/python/view_layer/test_evaluation_visibility_i.py
M	tests/python/view_layer/test_evaluation_visibility_j.py
M	tests/python/view_layer/test_group_a.py
M	tests/python/view_layer/test_group_b.py
M	tests/python/view_layer/test_group_c.py
M	tests/python/view_layer/test_group_d.py
M	tests/python/view_layer/test_group_e.py
M	tests/python/view_layer/test_layer_linking.py
M	tests/python/view_layer/test_layer_syncing.py
M	tests/python/view_layer/test_make_single_user.py
M	tests/python/view_layer/test_move_above_below_layer_collection_a.py
M	tests/python/view_layer/test_move_above_below_layer_collection_b.py
M	tests/python/view_layer/test_move_above_below_layer_collection_c.py
M	tests/python/view_layer/test_move_above_below_layer_collection_d.py
M	tests/python/view_layer/test_move_above_below_layer_collection_e.py
M	tests/python/view_layer/test_move_above_below_layer_collection_f.py
M	tests/python/view_layer/test_move_above_below_layer_collection_g.py
M	tests/python/view_layer/test_move_above_below_layer_collection_h.py
M	tests/python/view_layer/test_move_above_below_layer_collection_i.py
M	tests/python/view_layer/test_move_above_below_layer_collection_j.py
M	tests/python/view_layer/test_move_above_below_layer_collection_k.py
M	tests/python/view_layer/test_move_above_below_layer_collection_l.py
M	tests/python/view_layer/test_move_above_below_scene_collection_a.py
M	tests/python/view_layer/test_move_above_below_scene_collection_b.py
M	tests/python/view_layer/test_move_above_below_scene_collection_c.py
M	tests/python/view_layer/test_move_above_below_scene_collection_d.py
M	tests/python/view_layer/test_move_above_below_scene_collection_e.py
M	tests/python/view_layer/test_move_above_below_scene_collection_f.py
M	tests/python/view_layer/test_move_above_below_scene_collection_g.py
M	tests/python/view_layer/test_move_above_below_scene_collection_h.py
M	tests/python/view_layer/test_move_above_below_scene_collection_i.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_a.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_b.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_c.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_d.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_e.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_f.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_g.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_h.py
M	tests/python/view_layer/test_move_above_below_scene_collection_sync_i.py
M	tests/python/view_layer/test_move_into_layer_collection_a.py
M	tests/python/view_layer/test_move_into_layer_collection_b.py
M	tests/python/view_layer/test_move_into_layer_collection_c.py
M	tests/python/view_layer/test_move_into_layer_collection_d.py
M	tests/python/view_layer/test_move_into_layer_collection_e.py
M	tests/python/view_layer/test_move_into_layer_collection_f.py
M	tests/python/view_layer/test_move_into_layer_collection_g.py
M	tests/python/view_layer/test_move_into_layer_collection_h.py
M	tests/python/view_layer/test_move_into_layer_collection_i.py
M	tests/python/view_layer/test_move_into_layer_collection_j.py
M	tests/python/view_layer/test_move_into_scene_collection_a.py
M	tests/python/view_layer/test_move_into_scene_collection_b.py
M	tests/python/view_layer/test_move_into_scene_collection_c.py
M	tests/python/view_layer/test_move_into_scene_collection_d.py
M	tests/python/view_layer/test_move_into_scene_collection_e.py
M	tests/python/view_layer/test_move_into_scene_collection_f.py
M	tests/python/view_layer/test_move_into_scene_collection_g.py
M	tests/python/view_layer/test_move_into_scene_collection_h.py
M	tests/python/view_layer/test_move_into_scene_collection_i.py
M	tests/python/view_layer/test_move_into_scene_collection_j.py
M	tests/python/view_layer/test_move_into_scene_collection_k.py
M	tests/python/view_layer/test_move_into_scene_collection_l.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_a.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_b.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_c.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_d.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_e.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_f.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_g.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_h.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_i.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_j.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_k.py
M	tests/python/view_layer/test_move_into_scene_collection_sync_l.py
M	tests/python/view_layer/test_object_add_cylinder.py
M	tests/python/view_layer/test_object_add_empty.py
M	tests/python/view_layer/test_object_add_no_collection_cylinder.py
M	tests/python/view_layer/test_object_add_no_collection_empty.py
M	tests/python/view_layer/test_object_add_no_collection_torus.py
M	tests/python/view_layer/test_object_add_torus.py
M	tests/python/view_layer/test_object_copy.py
M	tests/python/view_layer/test_object_delete_a.py
M	tests/python/view_layer/test_object_delete_b.py
M	tests/python/view_layer/test_object_link_a.py
M	tests/python/view_layer/test_object_link_b.py
M	tests/python/view_layer/test_object_link_c.py
M	tests/python/view_layer/test_operator_context.py
M	tests/python/view_layer/test_scene_collection_delete.py
M	tests/python/view_layer/test_scene_copy_a.py
M	tests/python/view_layer/test_scene_copy_b.py
M	tests/python/view_layer/test_scene_copy_c.py
M	tests/python/view_layer/test_scene_copy_d.py
M	tests/python/view_layer/test_scene_copy_e.py
M	tests/python/view_layer/test_scene_copy_f.py
M	tests/python/view_layer/test_scene_delete.py
M	tests/python/view_layer/test_scene_objects.py
M	tests/python/view_layer/test_scene_write_read.py
M	tests/python/view_layer/test_view_layer_rename.py
M	tests/python/view_layer/view_layer_common.py

===================================================================

diff --git a/build_files/cmake/cmake_consistency_check_config.py b/build_files/cmake/cmake_consistency_check_config.py
index bf842466add..94e5ddb4289 100644
--- a/build_files/cmake/cmake_consistency_check_config.py
+++ b/build_files/cmake/cmake_consistency_check_config.py
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
 import os
 
 IGNORE_SOURCE = (
diff --git a/build_files/package_spec/build_archive.py b/build_files/package_spec/build_archive.py
index d8d3c29ea48..06d11aef0e3 100755
--- a/build_files/package_spec/build_archive.py
+++ b/build_files/package_spec/build_archive.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 # <pep8 compliant>
 
diff --git a/build_files/utils/make_source_archive.py b/build_files/utils/make_source_archive.py
index 2ef6dccd5be..e06be9d5ba7 100755
--- a/build_files/utils/make_source_archive.py
+++ b/build_files/utils/make_source_archive.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 import argparse
 import dataclasses
diff --git a/build_files/utils/make_test.py b/build_files/utils/make_test.py
index 7f15195f8f9..8e711d5e33a 100755
--- a/build_files/utils/make_test.py
+++ b/build_files/utils/make_test.py
@@ -1,6 +1,9 @@
 #!/usr/bin/env python3
-#
-# "make test" for all platforms, running automated tests.
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+"""
+"make test" for all platforms, running automated tests.
+"""
 
 import argparse
 import os
diff --git a/build_files/utils/make_update.py b/build_files/utils/make_update.py
index 30ef090efbb..3701913bd5d 100755
--- a/build_files/utils/make_update.py
+++ b/build_files/utils/make_update.py
@@ -1,10 +1,13 @@
 #!/usr/bin/env python3
-#
-# "make update" for all platforms, updating svn libraries and tests and Blender
-# git repository and submodules.
-#
-# For release branches, this will check out the appropriate branches of
-# submodules and libraries.
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+"""
+"make update" for all platforms, updating svn libraries and tests and Blender
+git repository and sub-modules.
+
+For release branches, this will check out the appropriate branches of
+sub-modules and libraries.
+"""
 
 import argparse
 import os
diff --git a/build_files/utils/make_utils.py b/build_files/utils/make_utils.py
index 9def0059ceb..b1aab93d698 100755
--- a/build_files/utils/make_utils.py
+++ b/build_files/utils/make_utils.py
@@ -1,6 +1,9 @@
 #!/usr/bin/env python3
-#
-# Utility functions for make update and make tests.
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+"""
+Utility functions for make update and make tests.
+"""
 
 import re
 import shutil
diff --git a/release/lts/create_download_urls.py b/release/lts/create_download_urls.py
index 80613693e33..b3e08fe36d0 100755
--- a/release/lts/create_download_urls.py
+++ b/release/lts/create_download_urls.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 import argparse
 import datetime
diff --git a/release/lts/create_release_notes.py b/release/lts/create_release_notes.py
index 2d35a71c263..1e94936217c 100755
--- a/release/lts/create_release_notes.py
+++ b/release/lts/create_release_notes.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #!/usr/bin/env python3
 
 import argparse
@@ -51,7 +53,7 @@ class ReleaseLogLine:
 
         self.title = ""
         self.url = f"https://developer.blender.org/{self.ref}"
-    
+
     def __format_as_html(self)-> str:
         return f"  <li>{self.title} [<a href=\"{self.url}\">{self.ref}</a>]</li>"
 
diff --git a/release/scripts/modules/rna_manual_reference.py b/release/scripts/modules/rna_manual_reference.py
index f0da4bac974..dc2d0acbbee 100644
--- a/release/scripts/modules/rna_manual_reference.py
+++ b/release/scripts/modules/rna_manual_reference.py
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
 # Do not edit this file. This file is auto generated from rna_manual_reference_updater.py
 
 import bpy
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
index f5e5e32ee76..fdd198a1c7d 100755
--- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py
+++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 """
 This script is used to help cleaning RNA api.
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py b/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
index 8d1ec0b324b..fb24543f48a 100755
--- a/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
+++ b/source/blender/makesrna/rna_cleanup/rna_cleaner_merge.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 import sys
 
diff --git a/tests/python/view_layer/test_active_collection.py b/tests/python/view_layer/test_active_collection.py
index 1c6c3cd1983..dfd80c8151e 100644
--- a/tests/python/view_layer/test_active_collection.py
+++ b/tests/python/view_layer/test_active_collection.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_background_set.py b/tests/python/view_layer/test_background_set.py
index f522f425920..31e377966fb 100644
--- a/tests/python/view_layer/test_background_set.py
+++ b/tests/python/view_layer/test_background_set.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_collection_new_sync.py b/tests/python/view_layer/test_collection_new_sync.py
index 46b63c64f45..5bfb643cd24 100644
--- a/tests/python/view_layer/test_collection_new_sync.py
+++ b/tests/python/view_layer/test_collection_new_sync.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_collection_rename_a.py b/tests/python/view_layer/test_collection_rename_a.py
index ea156d7346f..f4495e0c64b 100644
--- a/tests/python/view_layer/test_collection_rename_a.py
+++ b/tests/python/view_layer/test_collection_rename_a.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_collection_rename_b.py b/tests/python/view_layer/test_collection_rename_b.py
index 3787066e1b9..bb7511ef735 100644
--- a/tests/python/view_layer/test_collection_rename_b.py
+++ b/tests/python/view_layer/test_collection_rename_b.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_evaluation_render_settings_a.py b/tests/python/view_layer/test_evaluation_render_settings_a.py
index 1299737cd2c..526e7462716 100644
--- a/tests/python/view_layer/test_evaluation_render_settings_a.py
+++ b/tests/python/view_layer/test_evaluation_render_settings_a.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_evaluation_render_settings_b.py b/tests/python/view_layer/test_evaluation_render_settings_b.py
index 77e01d85a87..1674ae6a93e 100644
--- a/tests/python/view_layer/test_evaluation_render_settings_b.py
+++ b/tests/python/view_layer/test_evaluation_render_settings_b.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_evaluation_render_settings_c.py b/tests/python/view_layer/test_evaluation_render_settings_c.py
index 033dd7bcb69..ca572253dff 100644
--- a/tests/python/view_layer/test_evaluation_render_settings_c.py
+++ b/tests/python/view_layer/test_evaluation_render_settings_c.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_evaluation_render_settings_d.py b/tests/python/view_layer/test_evaluation_render_settings_d.py
index 85808c548b4..2c2173af0d6 100644
--- a/tests/python/view_layer/test_evaluation_render_settings_d.py
+++ b/tests/python/view_layer/test_evaluation_render_settings_d.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_evaluation_render_settings_e.py b/tests/python/view_layer/test_evaluation_render_settings_e.py
index 2375a6e575e..f2cc6f579d7 100644
--- a/tests/python/view_layer/test_evaluation_render_settings_e.py
+++ b/tests/python/view_layer/test_evaluation_render_settings_e.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # ############################################################
 # Importing - Same For All Render Layer Tests
 # ############################################################
diff --git a/tests/python/view_layer/test_evaluation_render_settings_f.py b/tests/python/view_layer/test_evaluation_render_settings_f.py
index f334880b6b4..966bdb

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list