summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-12-13 11:38:41 -0800
committerEli Schwartz <eschwartz93@gmail.com>2023-12-13 15:19:21 -0500
commite991c4d45460c09e5eaee6cb1041edb95d1e990e (patch)
tree34e1d374aa99ecd5f4741396860b6463d60385e3 /mesonbuild/interpreter
parent1f82afe8999e9b30403c57f9ac86ef2fc7ec1267 (diff)
downloadmeson-e991c4d45460c09e5eaee6cb1041edb95d1e990e.tar.gz
Use SPDX-License-Identifier consistently
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
Diffstat (limited to 'mesonbuild/interpreter')
-rw-r--r--mesonbuild/interpreter/__init__.py14
-rw-r--r--mesonbuild/interpreter/interpreter.py11
-rw-r--r--mesonbuild/interpreter/primitives/__init__.py2
-rw-r--r--mesonbuild/interpreter/primitives/array.py2
-rw-r--r--mesonbuild/interpreter/primitives/dict.py2
-rw-r--r--mesonbuild/interpreter/primitives/integer.py2
-rw-r--r--mesonbuild/interpreter/primitives/range.py2
-rw-r--r--mesonbuild/interpreter/primitives/string.py2
8 files changed, 8 insertions, 29 deletions
diff --git a/mesonbuild/interpreter/__init__.py b/mesonbuild/interpreter/__init__.py
index 016e4dce5..e2ccce479 100644
--- a/mesonbuild/interpreter/__init__.py
+++ b/mesonbuild/interpreter/__init__.py
@@ -1,18 +1,6 @@
# SPDX-license-identifier: Apache-2.0
# Copyright 2012-2021 The Meson development team
-# Copyright © 2021 Intel Corporation
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Copyright © 2021-2023 Intel Corporation
"""Meson interpreter."""
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index e885010b2..f2e84a822 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1,15 +1,6 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2012-2021 The Meson development team
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
from __future__ import annotations
from .. import mparser
diff --git a/mesonbuild/interpreter/primitives/__init__.py b/mesonbuild/interpreter/primitives/__init__.py
index aebef414f..80532149e 100644
--- a/mesonbuild/interpreter/primitives/__init__.py
+++ b/mesonbuild/interpreter/primitives/__init__.py
@@ -1,5 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
-# SPDX-license-identifier: Apache-2.0
__all__ = [
'ArrayHolder',
diff --git a/mesonbuild/interpreter/primitives/array.py b/mesonbuild/interpreter/primitives/array.py
index eeea112e2..b42ddeaa4 100644
--- a/mesonbuild/interpreter/primitives/array.py
+++ b/mesonbuild/interpreter/primitives/array.py
@@ -1,5 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
-# SPDX-license-identifier: Apache-2.0
from __future__ import annotations
import typing as T
diff --git a/mesonbuild/interpreter/primitives/dict.py b/mesonbuild/interpreter/primitives/dict.py
index ac7c99b8a..ab4c15ffa 100644
--- a/mesonbuild/interpreter/primitives/dict.py
+++ b/mesonbuild/interpreter/primitives/dict.py
@@ -1,5 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
-# SPDX-license-identifier: Apache-2.0
from __future__ import annotations
import typing as T
diff --git a/mesonbuild/interpreter/primitives/integer.py b/mesonbuild/interpreter/primitives/integer.py
index 50def2cb7..cdf2355f0 100644
--- a/mesonbuild/interpreter/primitives/integer.py
+++ b/mesonbuild/interpreter/primitives/integer.py
@@ -1,5 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
-# SPDX-license-identifier: Apache-2.0
from __future__ import annotations
from ...interpreterbase import (
diff --git a/mesonbuild/interpreter/primitives/range.py b/mesonbuild/interpreter/primitives/range.py
index 5eb5e033e..23d5617b8 100644
--- a/mesonbuild/interpreter/primitives/range.py
+++ b/mesonbuild/interpreter/primitives/range.py
@@ -1,5 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
-# SPDX-license-identifier: Apache-2.0
from __future__ import annotations
import typing as T
diff --git a/mesonbuild/interpreter/primitives/string.py b/mesonbuild/interpreter/primitives/string.py
index bc98934dc..7cb492da7 100644
--- a/mesonbuild/interpreter/primitives/string.py
+++ b/mesonbuild/interpreter/primitives/string.py
@@ -1,5 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
-# SPDX-license-identifier: Apache-2.0
from __future__ import annotations
import re