mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-04 20:54:47 +02:00
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:
parent
3b2b1f4948
commit
2314fb2811
|
@ -0,0 +1 @@
|
|||
# SPDX-License-Identifier: MIT
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
#
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (C) 2014 Intel Corporation
|
||||
#
|
||||
# Licensed under the MIT license, see COPYING.MIT for details
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#
|
||||
# Licensed under the MIT license, see COPYING.MIT for details
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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?",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (C) 2017, 2018 Intel Corporation
|
||||
#
|
||||
# Licensed under the MIT license, see COPYING.MIT for details
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#
|
||||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
[pytest]
|
||||
DJANGO_SETTINGS_MODULE = settings
|
||||
norecursedirs = .git layers
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import os
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
urls.py
2
urls.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user