[elbe-devel] [PATCH 1/2] treewide: unify SPDX headers
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Jul 8 15:10:53 CEST 2024
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
conftest.py | 4 ++++
contrib/check-deb-py-versions.py | 3 +++
contrib/conftest.py | 4 ++++
contrib/replace-initvm-repository.py | 4 ++++
docs/conf.py | 6 +++---
elbepack/__init__.py | 4 ++++
elbepack/commands/cyclonedx-sbom.py | 2 ++
elbepack/commands/repodir.py | 1 +
elbepack/daemons/repo.py | 4 ++++
elbepack/dosunix.py | 1 +
elbepack/qemu_firmware.py | 4 ++++
elbepack/repodir.py | 1 +
elbepack/schema/__init__.py | 4 ++++
elbepack/tests/__init__.py | 4 ++++
elbepack/uuid7.py | 4 ++++
elbevalidate/__init__.py | 4 ++++
elbevalidate/_pytest_plugin.py | 4 ++++
elbevalidate/constants.py | 4 ++++
elbevalidate/path.py | 4 ++++
elbevalidate/pytest.py | 4 ++++
setup.py | 2 +-
test/test_elbevalidate.py | 4 ++++
test/test_mypy.py | 4 ++++
test/updated.py | 2 +-
tests/conftest.py | 4 ++++
tests/simple-validation-image-test.py | 4 ++++
website/conf.py | 6 +++---
website/ext/elbedocoverview.py | 4 ++++
website/ext/elbefeed.py | 4 ++++
29 files changed, 96 insertions(+), 8 deletions(-)
diff --git a/conftest.py b/conftest.py
index 6c57d81ae6d8..33d1c49b3c4b 100644
--- a/conftest.py
+++ b/conftest.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import os
import pytest
diff --git a/contrib/check-deb-py-versions.py b/contrib/check-deb-py-versions.py
index d28b1b7104e4..1dc9107c5490 100755
--- a/contrib/check-deb-py-versions.py
+++ b/contrib/check-deb-py-versions.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
"""
Debian and Python have different ways to represent non-release versions.
diff --git a/contrib/conftest.py b/contrib/conftest.py
index 9de91a5f7735..a6ae58318d3a 100644
--- a/contrib/conftest.py
+++ b/contrib/conftest.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import pytest
diff --git a/contrib/replace-initvm-repository.py b/contrib/replace-initvm-repository.py
index 48cfdbc1d528..0522ab6e0dcb 100755
--- a/contrib/replace-initvm-repository.py
+++ b/contrib/replace-initvm-repository.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import argparse
import xml.etree.ElementTree as ET
diff --git a/docs/conf.py b/docs/conf.py
index 5a09202b1c40..b04468cdff4c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,6 +1,6 @@
-# -*- coding: utf-8 -*-
-# SPDX-License-Identifier: 0BSD
-# SPDX-FileCopyrightText: Linutronix GmbH
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
#
# ELBE documentation build configuration file, created by
# sphinx-quickstart on Mon May 8 15:56:24 2017.
diff --git a/elbepack/__init__.py b/elbepack/__init__.py
index b54aedf222d9..3348cabefb52 100644
--- a/elbepack/__init__.py
+++ b/elbepack/__init__.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
from elbepack.version import elbe_version as __version__
__all__ = ['__version__']
diff --git a/elbepack/commands/cyclonedx-sbom.py b/elbepack/commands/cyclonedx-sbom.py
index 63007f33fa6c..1ee449effcaf 100644
--- a/elbepack/commands/cyclonedx-sbom.py
+++ b/elbepack/commands/cyclonedx-sbom.py
@@ -1,4 +1,6 @@
# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
import datetime
import itertools
diff --git a/elbepack/commands/repodir.py b/elbepack/commands/repodir.py
index 62d8a077b608..114252434de8 100644
--- a/elbepack/commands/repodir.py
+++ b/elbepack/commands/repodir.py
@@ -1,3 +1,4 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2022 Linutronix GmbH
diff --git a/elbepack/daemons/repo.py b/elbepack/daemons/repo.py
index 482102fa673f..488dd9f2b98a 100644
--- a/elbepack/daemons/repo.py
+++ b/elbepack/daemons/repo.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import logging
import mimetypes
import os
diff --git a/elbepack/dosunix.py b/elbepack/dosunix.py
index 3c60d36b4d71..a5b80e287c4c 100644
--- a/elbepack/dosunix.py
+++ b/elbepack/dosunix.py
@@ -1,3 +1,4 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2015-2022 Linutronix GmbH
diff --git a/elbepack/qemu_firmware.py b/elbepack/qemu_firmware.py
index f747ee19aa48..918c80cf012d 100755
--- a/elbepack/qemu_firmware.py
+++ b/elbepack/qemu_firmware.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import dataclasses
import enum
import fnmatch
diff --git a/elbepack/repodir.py b/elbepack/repodir.py
index 67ac247a26cd..ce317b80620e 100644
--- a/elbepack/repodir.py
+++ b/elbepack/repodir.py
@@ -1,3 +1,4 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2022 Linutronix GmbH
diff --git a/elbepack/schema/__init__.py b/elbepack/schema/__init__.py
index 01120a5b2b47..5997fa86e51b 100644
--- a/elbepack/schema/__init__.py
+++ b/elbepack/schema/__init__.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import importlib.resources
diff --git a/elbepack/tests/__init__.py b/elbepack/tests/__init__.py
index 0db74029ec5c..5141e70b91f8 100644
--- a/elbepack/tests/__init__.py
+++ b/elbepack/tests/__init__.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import pathlib
import pytest
diff --git a/elbepack/uuid7.py b/elbepack/uuid7.py
index c3d1873d0a44..72701fa87e0f 100644
--- a/elbepack/uuid7.py
+++ b/elbepack/uuid7.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import datetime
import secrets
import struct
diff --git a/elbevalidate/__init__.py b/elbevalidate/__init__.py
index 22e85bb7990b..32993b202d3d 100644
--- a/elbevalidate/__init__.py
+++ b/elbevalidate/__init__.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
"""
Utility to validate the contents of a created image.
The image is not booted but only mounted safely through libguestfs.
diff --git a/elbevalidate/_pytest_plugin.py b/elbevalidate/_pytest_plugin.py
index cb7d1b3c417e..28e5b4aa5ae9 100644
--- a/elbevalidate/_pytest_plugin.py
+++ b/elbevalidate/_pytest_plugin.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import pathlib
import pytest
diff --git a/elbevalidate/constants.py b/elbevalidate/constants.py
index 925db0c06ec2..7aca75a36efa 100644
--- a/elbevalidate/constants.py
+++ b/elbevalidate/constants.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import enum
diff --git a/elbevalidate/path.py b/elbevalidate/path.py
index e76465006459..e625be2636bb 100644
--- a/elbevalidate/path.py
+++ b/elbevalidate/path.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
"""
Classes mimicking :py:class:`pathlib.Path` that operate on files within a libguestfs context.
"""
diff --git a/elbevalidate/pytest.py b/elbevalidate/pytest.py
index cf98b572c082..b287c8aa60b5 100644
--- a/elbevalidate/pytest.py
+++ b/elbevalidate/pytest.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import importlib
import os
import sys
diff --git a/setup.py b/setup.py
index 08ed390f601a..82042984043f 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-#
+
# ELBE - Debian Based Embedded Rootfilesystem Builder
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2013-2014, 2017-2018 Linutronix GmbH
diff --git a/test/test_elbevalidate.py b/test/test_elbevalidate.py
index de3d5bc081c6..fa05d7451427 100644
--- a/test/test_elbevalidate.py
+++ b/test/test_elbevalidate.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2013-2014, 2017-2018 Linutronix GmbH
+
import importlib
import pathlib
import struct
diff --git a/test/test_mypy.py b/test/test_mypy.py
index 8c91db028e48..a6030449504d 100644
--- a/test/test_mypy.py
+++ b/test/test_mypy.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import importlib
import pytest
diff --git a/test/updated.py b/test/updated.py
index e757edf20297..d1f81d9189ad 100755
--- a/test/updated.py
+++ b/test/updated.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-#
+
# ELBE - Debian Based Embedded Rootfilesystem Builder
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2014, 2017 Linutronix GmbH
diff --git a/tests/conftest.py b/tests/conftest.py
index dc5eab557bdc..8d0b3f01fc01 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import elbevalidate.pytest
pytest_plugins = elbevalidate.pytest.plugin
diff --git a/tests/simple-validation-image-test.py b/tests/simple-validation-image-test.py
index 836f00013b57..4a56e6d6c5e1 100755
--- a/tests/simple-validation-image-test.py
+++ b/tests/simple-validation-image-test.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import sys
import textwrap
diff --git a/website/conf.py b/website/conf.py
index 907408d27156..f043ebbcc4a9 100644
--- a/website/conf.py
+++ b/website/conf.py
@@ -1,6 +1,6 @@
-# -*- coding: utf-8 -*-
-# SPDX-License-Identifier: 0BSD
-# SPDX-FileCopyrightText: Linutronix GmbH
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
import os
import sys
diff --git a/website/ext/elbedocoverview.py b/website/ext/elbedocoverview.py
index 031d9e38f066..1614b1c4c47b 100644
--- a/website/ext/elbedocoverview.py
+++ b/website/ext/elbedocoverview.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import os
import pathlib
diff --git a/website/ext/elbefeed.py b/website/ext/elbefeed.py
index a7005badc4d7..ce36020e0722 100644
--- a/website/ext/elbefeed.py
+++ b/website/ext/elbefeed.py
@@ -1,3 +1,7 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024 Linutronix GmbH
+
import datetime
import os
--
2.45.2
More information about the elbe-devel
mailing list