From de61deabaf510656a48c0daad9a9961c81df8da6 Mon Sep 17 00:00:00 2001 From: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com> Date: Thu, 27 Apr 2023 18:19:37 +0200 Subject: [PATCH] Fix license headers (#58) --- .licenserc.yaml | 37 +++++++++++++++++++++++++++++++++ actions.yaml | 2 ++ charmcraft.yaml | 2 ++ config.yaml | 2 ++ discourse.Dockerfile | 2 ++ image/scripts/app_launch.sh | 2 ++ localstack-installation.sh | 2 ++ metadata.yaml | 2 ++ pyproject.toml | 2 +- src/charm.py | 2 +- tests/__init__.py | 2 ++ tests/conftest.py | 2 +- tests/integration/__init__.py | 2 +- tests/integration/conftest.py | 2 +- tests/integration/test_charm.py | 2 +- tests/unit/__init__.py | 2 +- tests/unit/_patched_charm.py | 2 +- tox.ini | 2 +- 18 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 .licenserc.yaml diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 00000000..2e85f8d1 --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,37 @@ +header: + license: + spdx-id: Apache-2.0 + copyright-owner: Canonical Ltd. + content: | + Copyright [year] [owner] + See LICENSE file for licensing details. + paths: + - '**' + paths-ignore: + - '.github/**' + - '**/.gitkeep' + - '**/*.cfg' + - '**/*.conf' + - '**/*.j2' + - '**/*.json' + - '**/*.md' + - '**/*.rule' + - '**/*.tmpl' + - '**/*.txt' + - '.codespellignore' + - '.dockerignore' + - '.flake8' + - '.jujuignore' + - '.gitignore' + - '.licenserc.yaml' + - '.trivyignore' + - '.woke.yaml' + - '.woke.yml' + - 'CODEOWNERS' + - 'icon.svg' + - 'LICENSE' + - 'trivy.yaml' + - 'zap_rules.tsv' + - 'image/patches/**' + - 'lib/**' + comment: on-failure diff --git a/actions.yaml b/actions.yaml index d4e895f8..9e38532f 100644 --- a/actions.yaml +++ b/actions.yaml @@ -1,3 +1,5 @@ +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. add-admin-user: description: Add a new admin user. params: diff --git a/charmcraft.yaml b/charmcraft.yaml index 048d4544..3022dec3 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -1,3 +1,5 @@ +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. # Learn more about charmcraft.yaml configuration at: # https://juju.is/docs/sdk/charmcraft-config type: "charm" diff --git a/config.yaml b/config.yaml index ef895d7b..ca523649 100644 --- a/config.yaml +++ b/config.yaml @@ -1,3 +1,5 @@ +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. options: cors_origin: type: string diff --git a/discourse.Dockerfile b/discourse.Dockerfile index a248a00e..3a4d0fed 100644 --- a/discourse.Dockerfile +++ b/discourse.Dockerfile @@ -1,3 +1,5 @@ +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. FROM ubuntu:focal # Used in Launchpad OCI Recipe build to tag the image. diff --git a/image/scripts/app_launch.sh b/image/scripts/app_launch.sh index fe6d9b9b..c0a60abc 100755 --- a/image/scripts/app_launch.sh +++ b/image/scripts/app_launch.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. export UNICORN_BIND_ALL=0.0.0.0 export UNICORN_SIDEKIQS=1 diff --git a/localstack-installation.sh b/localstack-installation.sh index 92c37f9f..fc2982cf 100644 --- a/localstack-installation.sh +++ b/localstack-installation.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. pip install pip --upgrade pip install pyopenssl --upgrade diff --git a/metadata.yaml b/metadata.yaml index be001dae..a8ebb735 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -1,3 +1,5 @@ +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. name: discourse-k8s display-name: Discourse summary: Discourse is the modern forum for your community. diff --git a/pyproject.toml b/pyproject.toml index 711f4516..50996e63 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,4 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. [tool.bandit] diff --git a/src/charm.py b/src/charm.py index 369536af..222b30d6 100755 --- a/src/charm.py +++ b/src/charm.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. """Charm for Discourse on kubernetes.""" diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..db3bfe1a 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,2 @@ +# Copyright 2023 Canonical Ltd. +# See LICENSE file for licensing details. diff --git a/tests/conftest.py b/tests/conftest.py index 4b2cc2db..2fa2436b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. """Module for test customizations.""" diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index b1445114..db3bfe1a 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -1,2 +1,2 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index c8f305d0..5be115b4 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -1,4 +1,4 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. """Discourse integration tests fixtures.""" diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index a4339eeb..5ca107ca 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. """Discourse integration tests.""" diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 5d4f79c3..257f97c3 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. """Ops testing settings.""" diff --git a/tests/unit/_patched_charm.py b/tests/unit/_patched_charm.py index 1c0a2fea..0844758b 100644 --- a/tests/unit/_patched_charm.py +++ b/tests/unit/_patched_charm.py @@ -1,4 +1,4 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. """Patch the ``ops-lib-pgsql`` library for unit testing. diff --git a/tox.ini b/tox.ini index 76c7539b..f6b1dc3c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,4 @@ -# Copyright 2022 Canonical Ltd. +# Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. [tox]