Skip to content

Commit bde2774

Browse files
[issue-511] replace license text with SPDX license identifier
Signed-off-by: Armin Tänzer <[email protected]>
1 parent f66fdca commit bde2774

File tree

192 files changed

+571
-1890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+571
-1890
lines changed

src/spdx/casing_tools.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 re import sub
125

136

src/spdx/clitools/pyspdxtools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python3
22

33
# Copyright (c) 2020 Yash Varshney
4+
# Copyright (c) 2023 spdx contributors
5+
# SPDX-License-Identifier: Apache-2.0
46
# Licensed under the Apache License, Version 2.0 (the "License");
57
# you may not use this file except in compliance with the License.
68
# You may obtain a copy of the License at

src/spdx/datetime_conversions.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 datetime import datetime
125

136

src/spdx/document_utils.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 typing import List, Union
125

136
from spdx.model.document import Document

src/spdx/formats.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 enum import Enum, auto
125

136
from spdx.parser.error import SPDXParsingError

src/spdx/jsonschema/annotation_converter.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 typing import Any, Type
125

136
from spdx.datetime_conversions import datetime_to_iso_string

src/spdx/jsonschema/annotation_properties.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 enum import auto
125

136
from spdx.jsonschema.json_property import JsonProperty

src/spdx/jsonschema/checksum_converter.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 typing import Type
125

136
from spdx.jsonschema.checksum_properties import ChecksumProperty

src/spdx/jsonschema/checksum_properties.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 enum import auto
125

136
from spdx.jsonschema.json_property import JsonProperty

src/spdx/jsonschema/converter.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 abc import ABC, abstractmethod
125
from typing import Any, Dict, Generic, Type, TypeVar
136

0 commit comments

Comments
 (0)