From 31a50521c190d7df637a357ac7d7f46151ca7b77 Mon Sep 17 00:00:00 2001 From: Holger Frydrych Date: Fri, 23 Jun 2023 12:11:18 +0200 Subject: [PATCH] Add missing license headers in source files Signed-off-by: Holger Frydrych --- src/spdx_tools/common/typing/constructor_type_errors.py | 3 +++ src/spdx_tools/spdx/parser/parse_anything.py | 1 + src/spdx_tools/spdx/writer/tagvalue/annotation_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/checksum_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/creation_info_writer.py | 1 + .../spdx/writer/tagvalue/extracted_licensing_info_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/file_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/package_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/relationship_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/snippet_writer.py | 1 + src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer.py | 1 + .../spdx/writer/tagvalue/tagvalue_writer_helper_functions.py | 1 + src/spdx_tools/spdx3/model/__init__.py | 3 +++ src/spdx_tools/spdx3/model/dataset/__init__.py | 3 +++ src/spdx_tools/spdx3/model/software/__init__.py | 3 +++ src/spdx_tools/spdx3/writer/console/__init__.py | 3 +++ src/spdx_tools/spdx3/writer/console/tool_writer.py | 1 + tests/spdx/test_cli.py | 3 +++ 18 files changed, 30 insertions(+) diff --git a/src/spdx_tools/common/typing/constructor_type_errors.py b/src/spdx_tools/common/typing/constructor_type_errors.py index e70f53329..a9b4046aa 100644 --- a/src/spdx_tools/common/typing/constructor_type_errors.py +++ b/src/spdx_tools/common/typing/constructor_type_errors.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 spdx contributors +# +# SPDX-License-Identifier: Apache-2.0 from beartype.typing import List diff --git a/src/spdx_tools/spdx/parser/parse_anything.py b/src/spdx_tools/spdx/parser/parse_anything.py index b54bb7694..b91f76111 100644 --- a/src/spdx_tools/spdx/parser/parse_anything.py +++ b/src/spdx_tools/spdx/parser/parse_anything.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/annotation_writer.py b/src/spdx_tools/spdx/writer/tagvalue/annotation_writer.py index 5c9bd85ee..71637073f 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/annotation_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/annotation_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/checksum_writer.py b/src/spdx_tools/spdx/writer/tagvalue/checksum_writer.py index b641c0f53..cf87e1a4e 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/checksum_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/checksum_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/creation_info_writer.py b/src/spdx_tools/spdx/writer/tagvalue/creation_info_writer.py index 6987702d5..81fd3586c 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/creation_info_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/creation_info_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/extracted_licensing_info_writer.py b/src/spdx_tools/spdx/writer/tagvalue/extracted_licensing_info_writer.py index 356722859..0e89faa34 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/extracted_licensing_info_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/extracted_licensing_info_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/file_writer.py b/src/spdx_tools/spdx/writer/tagvalue/file_writer.py index d3f3d85e3..0b1d8c8f5 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/file_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/file_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/package_writer.py b/src/spdx_tools/spdx/writer/tagvalue/package_writer.py index 8ba0f8f0e..9be4ec46f 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/package_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/package_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/relationship_writer.py b/src/spdx_tools/spdx/writer/tagvalue/relationship_writer.py index a9cb9b754..446bc6fd9 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/relationship_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/relationship_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/snippet_writer.py b/src/spdx_tools/spdx/writer/tagvalue/snippet_writer.py index f5cd2e84d..f6449951f 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/snippet_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/snippet_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer.py b/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer.py index 50615fa18..8f12d1a99 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer.py +++ b/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer_helper_functions.py b/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer_helper_functions.py index 458d76711..907c155b7 100644 --- a/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer_helper_functions.py +++ b/src/spdx_tools/spdx/writer/tagvalue/tagvalue_writer_helper_functions.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2022 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/spdx_tools/spdx3/model/__init__.py b/src/spdx_tools/spdx3/model/__init__.py index 6ee016fe2..9bdc62b36 100644 --- a/src/spdx_tools/spdx3/model/__init__.py +++ b/src/spdx_tools/spdx3/model/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 spdx contributors +# +# SPDX-License-Identifier: Apache-2.0 from spdx_tools.spdx3.model.profile_identifier import ProfileIdentifier from spdx_tools.spdx3.model.creation_info import CreationInfo from spdx_tools.spdx3.model.integrity_method import IntegrityMethod diff --git a/src/spdx_tools/spdx3/model/dataset/__init__.py b/src/spdx_tools/spdx3/model/dataset/__init__.py index 7ccfa13e7..5e2b4e153 100644 --- a/src/spdx_tools/spdx3/model/dataset/__init__.py +++ b/src/spdx_tools/spdx3/model/dataset/__init__.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2023 spdx contributors +# +# SPDX-License-Identifier: Apache-2.0 from spdx_tools.spdx3.model.dataset.dataset import Dataset, DatasetAvailabilityType, ConfidentialityLevelType diff --git a/src/spdx_tools/spdx3/model/software/__init__.py b/src/spdx_tools/spdx3/model/software/__init__.py index df338b385..f3b157024 100644 --- a/src/spdx_tools/spdx3/model/software/__init__.py +++ b/src/spdx_tools/spdx3/model/software/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 spdx contributors +# +# SPDX-License-Identifier: Apache-2.0 from spdx_tools.spdx3.model.software.software_purpose import SoftwarePurpose from spdx_tools.spdx3.model.software.file import File from spdx_tools.spdx3.model.software.package import Package diff --git a/src/spdx_tools/spdx3/writer/console/__init__.py b/src/spdx_tools/spdx3/writer/console/__init__.py index 7c191400b..39bbda884 100644 --- a/src/spdx_tools/spdx3/writer/console/__init__.py +++ b/src/spdx_tools/spdx3/writer/console/__init__.py @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: 2023 spdx contributors +# +# SPDX-License-Identifier: Apache-2.0 """ This is a temporary package to write the implemented model of spdx_tools.spdx3.0 to console. As soon as serialization formats are properly defined this package can be deleted.""" diff --git a/src/spdx_tools/spdx3/writer/console/tool_writer.py b/src/spdx_tools/spdx3/writer/console/tool_writer.py index 23eeb6a1a..1873263bc 100644 --- a/src/spdx_tools/spdx3/writer/console/tool_writer.py +++ b/src/spdx_tools/spdx3/writer/console/tool_writer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2023 spdx contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/spdx/test_cli.py b/tests/spdx/test_cli.py index 8bdedbb8e..f269c2f5a 100644 --- a/tests/spdx/test_cli.py +++ b/tests/spdx/test_cli.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 spdx contributors +# +# SPDX-License-Identifier: Apache-2.0 import os import pytest