Skip to content

Commit 78c4266

Browse files
committed
Add missing license headers in source files
Signed-off-by: Holger Frydrych <[email protected]>
1 parent e27cef9 commit 78c4266

18 files changed

+54
-120
lines changed

src/spdx_tools/common/typing/constructor_type_errors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2023 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
14
from beartype.typing import List
25

36

src/spdx_tools/spdx/parser/parse_anything.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2023 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from spdx_tools.spdx.formats import FileFormat, file_name_to_format
125
from spdx_tools.spdx.parser.json import json_parser
136
from spdx_tools.spdx.parser.rdf import rdf_parser

src/spdx_tools/spdx/writer/tagvalue/annotation_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.datetime_conversions import datetime_to_iso_string

src/spdx_tools/spdx/writer/tagvalue/checksum_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from spdx_tools.spdx.model import Checksum, ChecksumAlgorithm
125

136

src/spdx_tools/spdx/writer/tagvalue/creation_info_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.datetime_conversions import datetime_to_iso_string

src/spdx_tools/spdx/writer/tagvalue/extracted_licensing_info_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.model import ExtractedLicensingInfo

src/spdx_tools/spdx/writer/tagvalue/file_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.model import File

src/spdx_tools/spdx/writer/tagvalue/package_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.datetime_conversions import datetime_to_iso_string

src/spdx_tools/spdx/writer/tagvalue/relationship_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.model import Relationship

src/spdx_tools/spdx/writer/tagvalue/snippet_writer.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Copyright (c) 2022 spdx contributors
2-
# Licensed under the Apache License, Version 2.0 (the "License");
3-
# you may not use this file except in compliance with the License.
4-
# You may obtain a copy of the License at
5-
# http://www.apache.org/licenses/LICENSE-2.0
6-
# Unless required by applicable law or agreed to in writing, software
7-
# distributed under the License is distributed on an "AS IS" BASIS,
8-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
# See the License for the specific language governing permissions and
10-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2022 spdx contributors
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
114
from beartype.typing import TextIO
125

136
from spdx_tools.spdx.model import Snippet

0 commit comments

Comments
 (0)