Add SPDX license headers to layerindex-web source files

Added SPDX identifiers to all .py files except those in migrations directory.

Fixes: [YOCTO #13527]

Signed-off-by: Meh Mbeh Ida Delphine <idadelm@gmail.com>
Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
This commit is contained in:
Meh Mbeh Ida Delphine 2021-02-02 12:04:04 +01:00 committed by Paul Eggleton
parent 3b2b1f4948
commit 2314fb2811
65 changed files with 167 additions and 0 deletions

View File

@ -0,0 +1 @@
# SPDX-License-Identifier: MIT

View File

@ -2,6 +2,8 @@
#
# Based on settings.py from the Django project template
# Copyright (c) Django Software Foundation and individual contributors.
#
# SPDX-License-Identifier: MIT
import os

View File

@ -6,6 +6,8 @@
# Author: Amber Elliot <amber.n.elliot@intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
# This script will make a cluster of 5 containers:
#

View File

@ -0,0 +1,5 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from layerindex.models import *
from django.contrib import admin

View File

@ -3,6 +3,8 @@
# Copyright (C) 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from captcha.fields import CaptchaField
from django import forms

View File

@ -3,6 +3,8 @@
# Copyright (C) 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.contrib import messages
from django.contrib.auth import logout

View File

@ -5,6 +5,8 @@
# Copyright (C) 2013, 2016, 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013, 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from layerindex.models import Branch, LayerItem, SiteNotice
from django.contrib.sites.models import Site

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013, 2016-2019 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import re
from collections import OrderedDict

View File

@ -5,6 +5,7 @@
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -3,6 +3,8 @@
# Copyright (C) 2019 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.utils.deprecation import MiddlewareMixin
from django.http import HttpResponseRedirect

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013-2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.db import models
from datetime import datetime

View File

@ -1,3 +1,11 @@
# layerindex-web - queryset helper definitions
#
# Copyright (C) 2014-2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import operator
import functools
from django.db.models import Q, CharField

View File

@ -4,6 +4,8 @@
#
# Copyright (C) 2012 Intel Corporation
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -4,6 +4,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -1,3 +1,9 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from rest_framework import permissions
class ReadOnlyPermission(permissions.BasePermission):

View File

@ -3,6 +3,8 @@
# Copyright (C) 2014, 2016-2019 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from layerindex.models import Branch, LayerItem, LayerMaintainer, YPCompatibleVersion, LayerNote, LayerBranch, LayerDependency, Recipe, Machine, Distro, BBClass, Source, Patch, PackageConfig, StaticBuildDep, DynamicBuildDep, RecipeFileDependency, BBAppend, IncFile
from rest_framework import viewsets, serializers, pagination

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT
security_questions = ["What was the name of your first pet?",
"What was the last name of your third grade teacher?",
"What is your favorite pizza topping?",

View File

@ -4,6 +4,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from celery import Celery
from django.core.mail import EmailMessage

View File

@ -0,0 +1,5 @@
# Copyright (C) 2017, 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT

View File

@ -1,3 +1,9 @@
# Copyright (C) 2017, 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django import template
from .. import utils

View File

@ -5,6 +5,8 @@
# Copyright (C) 2017, 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -5,6 +5,8 @@
# Copyright (C) 2017 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -7,6 +7,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -9,6 +9,8 @@
# Author: Liam R. Howlett <liam.howlett@windriver.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from urllib.parse import urlparse
import logging

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -5,6 +5,8 @@
# Copyright (C) 2019 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013, 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.conf.urls import *
from django.views.generic import TemplateView, DetailView, ListView, RedirectView

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013-2016 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.conf.urls import *
from django.views.defaults import page_not_found

View File

@ -4,6 +4,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -3,6 +3,8 @@
# Copyright (C) 2013-2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import os
import sys

View File

@ -6,6 +6,8 @@
#
# Copyright (c) Django Software Foundation and individual contributors.
# All rights reserved.
#
# SPDX-License-Identifier: MIT
import os
import sys

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT
[pytest]
DJANGO_SETTINGS_MODULE = settings
norecursedirs = .git layers

View File

@ -1,2 +1,7 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
default_app_config = 'rrs.apps.RecipeReportingSystemConfig'

View File

@ -3,6 +3,8 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.utils.functional import curry

View File

@ -1,3 +1,9 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.apps import AppConfig

View File

@ -3,6 +3,8 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import settings
from django.contrib.sites.models import Site

View File

@ -3,6 +3,8 @@
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -4,6 +4,8 @@
# Author: Anibal Limon <anibal.limon@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os

View File

@ -5,6 +5,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -6,6 +6,8 @@
# Author: Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -6,6 +6,8 @@
# Author: Anibal Limon <anibal.limon@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -6,6 +6,8 @@
# Author: Anibal Limon <anibal.limon@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -9,6 +9,8 @@
# Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -7,6 +7,8 @@
# Author: Aníbal Limón <anibal.limon@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -6,6 +6,8 @@
# Author: Anibal Limon <anibal.limon@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys
import os.path

View File

@ -7,6 +7,8 @@
# Paul Eggleton <paul.eggleton@linux.intel.com>
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import sys

View File

@ -1,3 +1,11 @@
# rrs-web - URLS
#
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.conf.urls import include, url
from rrs.models import Release, Milestone

View File

@ -1,3 +1,11 @@
# rrs-web - views
#
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
import urllib
import csv

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

View File

@ -2,6 +2,8 @@
#
# Based on settings.py from the Django project template
# Copyright (c) Django Software Foundation and individual contributors.
#
# SPDX-License-Identifier: MIT
import os

View File

@ -3,6 +3,8 @@
# Copyright (C) 2018 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
# NOTE: requires pytest-django. Run using "pytest" from the root
# of the repository (add -s to avoid suppressing the output of commands

View File

@ -4,6 +4,8 @@
#
# Copyright (c) Django Software Foundation and individual contributors.
# All rights reserved.
#
# SPDX-License-Identifier: MIT
from django.conf.urls import include, url
from django.urls import reverse_lazy

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
sys.path.append('/var/www/html/layerindex')