Skip to content

Commit 2314fb2

Browse files
Idadelveloperbluelightning
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Eggleton <[email protected]>
1 parent 3b2b1f4 commit 2314fb2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+167
-0
lines changed

__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SPDX-License-Identifier: MIT

docker/settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#
33
# Based on settings.py from the Django project template
44
# Copyright (c) Django Software Foundation and individual contributors.
5+
#
6+
# SPDX-License-Identifier: MIT
57

68
import os
79

dockersetup.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Amber Elliot <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012
# This script will make a cluster of 5 containers:
1113
#

layerindex/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (C) 2014 Intel Corporation
2+
#
3+
# Licensed under the MIT license, see COPYING.MIT for details
4+
#
5+
# SPDX-License-Identifier: MIT

layerindex/admin.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from layerindex.models import *
810
from django.contrib import admin

layerindex/auth_forms.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2018 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from captcha.fields import CaptchaField
810
from django import forms

layerindex/auth_views.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2018 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from django.contrib import messages
810
from django.contrib.auth import logout

layerindex/bulkchange.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# Copyright (C) 2013, 2016, 2018 Intel Corporation
66
#
77
# Licensed under the MIT license, see COPYING.MIT for details
8+
#
9+
# SPDX-License-Identifier: MIT
810

911
import sys
1012
import os

layerindex/context_processors.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013, 2018 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from layerindex.models import Branch, LayerItem, SiteNotice
810
from django.contrib.sites.models import Site

layerindex/forms.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013, 2016-2019 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
import re
810
from collections import OrderedDict

layerindex/layerconfparse.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Licensed under the MIT license, see COPYING.MIT for details
77
#
8+
# SPDX-License-Identifier: MIT
89

910
import sys
1011
import os

layerindex/middleware.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2019 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from django.utils.deprecation import MiddlewareMixin
810
from django.http import HttpResponseRedirect

layerindex/models.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013-2018 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from django.db import models
810
from datetime import datetime

layerindex/querysethelper.py

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# layerindex-web - queryset helper definitions
2+
#
3+
# Copyright (C) 2014-2018 Intel Corporation
4+
#
5+
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
8+
19
import operator
210
import functools
311
from django.db.models import Q, CharField

layerindex/recipedesc.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# Copyright (C) 2012 Intel Corporation
66
# Author: Paul Eggleton <[email protected]>
7+
#
8+
# SPDX-License-Identifier: MIT
79

810
import sys
911
import os.path

layerindex/recipeparse.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Author: Paul Eggleton <[email protected]>
55
#
66
# Licensed under the MIT license, see COPYING.MIT for details
7+
#
8+
# SPDX-License-Identifier: MIT
79

810
import sys
911
import os

layerindex/restperm.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (C) 2014 Intel Corporation
2+
#
3+
# Licensed under the MIT license, see COPYING.MIT for details
4+
#
5+
# SPDX-License-Identifier: MIT
6+
17
from rest_framework import permissions
28

39
class ReadOnlyPermission(permissions.BasePermission):

layerindex/restviews.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2014, 2016-2019 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from layerindex.models import Branch, LayerItem, LayerMaintainer, YPCompatibleVersion, LayerNote, LayerBranch, LayerDependency, Recipe, Machine, Distro, BBClass, Source, Patch, PackageConfig, StaticBuildDep, DynamicBuildDep, RecipeFileDependency, BBAppend, IncFile
810
from rest_framework import viewsets, serializers, pagination

layerindex/securityquestions.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
13
security_questions = ["What was the name of your first pet?",
24
"What was the last name of your third grade teacher?",
35
"What is your favorite pizza topping?",

layerindex/tasks.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Author: Paul Eggleton <[email protected]>
55
#
66
# Licensed under the MIT license, see COPYING.MIT for details
7+
#
8+
# SPDX-License-Identifier: MIT
79

810
from celery import Celery
911
from django.core.mail import EmailMessage

layerindex/templatetags/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (C) 2017, 2018 Intel Corporation
2+
#
3+
# Licensed under the MIT license, see COPYING.MIT for details
4+
#
5+
# SPDX-License-Identifier: MIT

layerindex/templatetags/extrafilters.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (C) 2017, 2018 Intel Corporation
2+
#
3+
# Licensed under the MIT license, see COPYING.MIT for details
4+
#
5+
# SPDX-License-Identifier: MIT
6+
17
from django import template
28
from .. import utils
39

layerindex/tools/fedora-fetch.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# Copyright (C) 2017, 2018 Intel Corporation
66
#
77
# Licensed under the MIT license, see COPYING.MIT for details
8+
#
9+
# SPDX-License-Identifier: MIT
810

911
import sys
1012
import os

layerindex/tools/fixup_duplicates.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/tools/github-fetch.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# Copyright (C) 2017 Intel Corporation
66
#
77
# Licensed under the MIT license, see COPYING.MIT for details
8+
#
9+
# SPDX-License-Identifier: MIT
810

911
import sys
1012
import os

layerindex/tools/import_classic.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/tools/import_classic_wiki.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# Author: Paul Eggleton <[email protected]>
88
#
99
# Licensed under the MIT license, see COPYING.MIT for details
10+
#
11+
# SPDX-License-Identifier: MIT
1012

1113
import sys
1214
import os.path

layerindex/tools/import_layer.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/tools/import_layers.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/tools/import_otherdistro.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/tools/import_project.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# Author: Liam R. Howlett <[email protected]>
1010
#
1111
# Licensed under the MIT license, see COPYING.MIT for details
12+
#
13+
# SPDX-License-Identifier: MIT
1214

1315
from urllib.parse import urlparse
1416
import logging

layerindex/tools/import_wiki_layers.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/tools/site_name.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012
import sys
1113
import os

layerindex/tools/update_classic_status.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012
import sys
1113
import os

layerindex/tools/webapi-test.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# Copyright (C) 2019 Intel Corporation
66
#
77
# Licensed under the MIT license, see COPYING.MIT for details
8+
#
9+
# SPDX-License-Identifier: MIT
810

911
import sys
1012
import os

layerindex/update.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/update_layer.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Author: Paul Eggleton <[email protected]>
77
#
88
# Licensed under the MIT license, see COPYING.MIT for details
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012

1113
import sys

layerindex/urls.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013, 2018 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from django.conf.urls import *
810
from django.views.generic import TemplateView, DetailView, ListView, RedirectView

layerindex/urls_branch.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013-2016 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from django.conf.urls import *
810
from django.views.defaults import page_not_found

layerindex/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Author: Paul Eggleton <[email protected]>
55
#
66
# Licensed under the MIT license, see COPYING.MIT for details
7+
#
8+
# SPDX-License-Identifier: MIT
79

810
import sys
911
import os

layerindex/views.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2013-2018 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
import os
810
import sys

manage.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#
77
# Copyright (c) Django Software Foundation and individual contributors.
88
# All rights reserved.
9+
#
10+
# SPDX-License-Identifier: MIT
911

1012
import os
1113
import sys

password_validation.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
13
from django.core.exceptions import ValidationError
24
from django.utils.translation import ugettext as _
35

pytest.ini

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
13
[pytest]
24
DJANGO_SETTINGS_MODULE = settings
35
norecursedirs = .git layers

rrs/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
# Copyright (C) 2014 Intel Corporation
2+
#
3+
# Licensed under the MIT license, see COPYING.MIT for details
4+
#
5+
# SPDX-License-Identifier: MIT
16

27
default_app_config = 'rrs.apps.RecipeReportingSystemConfig'

rrs/admin.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (C) 2014 Intel Corporation
44
#
55
# Licensed under the MIT license, see COPYING.MIT for details
6+
#
7+
# SPDX-License-Identifier: MIT
68

79
from django.utils.functional import curry
810

0 commit comments

Comments
 (0)