Add SPDX license headers to layerindex-web source files
PATCH 1/1 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]>
--- __init__.py | 1 + docker/settings.py | 2 ++ dockersetup.py | 2 ++ layerindex/__init__.py | 5 +++++ layerindex/admin.py | 2 ++ layerindex/auth_forms.py | 2 ++ layerindex/auth_views.py | 2 ++ layerindex/bulkchange.py | 2 ++ layerindex/context_processors.py | 2 ++ layerindex/forms.py | 2 ++ layerindex/layerconfparse.py | 1 + layerindex/middleware.py | 2 ++ layerindex/models.py | 2 ++ layerindex/querysethelper.py | 8 ++++++++ layerindex/recipedesc.py | 2 ++ layerindex/recipeparse.py | 2 ++ layerindex/restperm.py | 6 ++++++ layerindex/restviews.py | 2 ++ layerindex/securityquestions.py | 8 ++++++++ layerindex/tasks.py | 2 ++ layerindex/templatetags/__init__.py | 5 +++++ layerindex/templatetags/extrafilters.py | 6 ++++++ layerindex/tools/fedora-fetch.py | 2 ++ layerindex/tools/fixup_duplicates.py | 2 ++ layerindex/tools/github-fetch.py | 2 ++ layerindex/tools/import_classic.py | 2 ++ layerindex/tools/import_classic_wiki.py | 2 ++ layerindex/tools/import_layer.py | 2 ++ layerindex/tools/import_layers.py | 2 ++ layerindex/tools/import_otherdistro.py | 2 ++ layerindex/tools/import_project.py | 2 ++ layerindex/tools/import_wiki_layers.py | 2 ++ layerindex/tools/site_name.py | 2 ++ layerindex/tools/update_classic_status.py | 2 ++ layerindex/tools/webapi-test.py | 2 ++ layerindex/update.py | 2 ++ layerindex/update_layer.py | 2 ++ layerindex/urls.py | 2 ++ layerindex/urls_branch.py | 2 ++ layerindex/utils.py | 2 ++ layerindex/views.py | 2 ++ manage.py | 2 ++ password_validation.py | 5 +++++ pytest.ini | 5 +++++ rrs/__init__.py | 5 +++++ rrs/admin.py | 2 ++ rrs/apps.py | 6 ++++++ rrs/context_processors.py | 2 ++ rrs/models.py | 2 ++ rrs/tools/common.py | 2 ++ rrs/tools/dump_upgrades.py | 2 ++ rrs/tools/historytool.py | 2 ++ rrs/tools/rrs_distros.py | 2 ++ rrs/tools/rrs_maintainer_history.py | 2 ++ rrs/tools/rrs_upgrade_history.py | 2 ++ rrs/tools/rrs_upstream_email.py | 2 ++ rrs/tools/rrs_upstream_history.py | 2 ++ rrs/tools/upgrade_history_internal.py | 2 ++ rrs/urls.py | 8 ++++++++ rrs/views.py | 8 ++++++++ rrs/wsgi.py | 6 ++++++ settings.py | 2 ++ tests/test_update.py | 2 ++ urls.py | 2 ++ wsgi.py | 5 +++++ 65 files changed, 186 insertions(+)
__init__.py +1 -0
@@ -0,0 +1 @@ +# SPDX-License-Identifier: MIT
docker/settings.py +2 -0
@@ -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
dockersetup.py +2 -0
@@ -6,6 +6,8 @@ # Author: Amber Elliot <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT # This script will make a cluster of 5 containers: #
layerindex/__init__.py +5 -0
@@ -0,0 +1,5 @@ +# Copyright (C) 2014 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT
layerindex/admin.py +2 -0
@@ -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
layerindex/auth_forms.py +2 -0
@@ -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
layerindex/auth_views.py +2 -0
@@ -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
layerindex/bulkchange.py +2 -0
@@ -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
layerindex/context_processors.py +2 -0
@@ -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
layerindex/forms.py +2 -0
@@ -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
layerindex/layerconfparse.py +1 -0
@@ -5,6 +5,7 @@ # # Licensed under the MIT license, see COPYING.MIT for details # +# SPDX-License-Identifier: MIT import sys import os
layerindex/middleware.py +2 -0
@@ -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
layerindex/models.py +2 -0
@@ -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
layerindex/querysethelper.py +8 -0
@@ -1,3 +1,11 @@ +# layerindex-web - queryset helper definitions +# +# Copyright (C) 2013-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
layerindex/recipedesc.py +2 -0
@@ -4,6 +4,8 @@ # # Copyright (C) 2012 Intel Corporation # Author: Paul Eggleton <[email protected]> +# +# SPDX-License-Identifier: MIT import sys import os.path
layerindex/recipeparse.py +2 -0
@@ -4,6 +4,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os
layerindex/restperm.py +6 -0
@@ -1,3 +1,9 @@ +# Copyright (C) 2013-2018 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):
layerindex/restviews.py +2 -0
@@ -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
layerindex/securityquestions.py +8 -0
@@ -1,3 +1,11 @@ +# layerindex-web - Security Questions +# +# Copyright (C) 2013-2018 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# 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?",
layerindex/tasks.py +2 -0
@@ -4,6 +4,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT from celery import Celery from django.core.mail import EmailMessage
layerindex/templatetags/__init__.py +5 -0
@@ -0,0 +1,5 @@ +# Copyright (C) 2017, 2018 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT
layerindex/templatetags/extrafilters.py +6 -0
@@ -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
layerindex/tools/fedora-fetch.py +2 -0
@@ -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
layerindex/tools/fixup_duplicates.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/tools/github-fetch.py +2 -0
@@ -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
layerindex/tools/import_classic.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/tools/import_classic_wiki.py +2 -0
@@ -7,6 +7,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.path
layerindex/tools/import_layer.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/tools/import_layers.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/tools/import_otherdistro.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/tools/import_project.py +2 -0
@@ -9,6 +9,8 @@ # Author: Liam R. Howlett <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT from urllib.parse import urlparse import logging
layerindex/tools/import_wiki_layers.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/tools/site_name.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os
layerindex/tools/update_classic_status.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os
layerindex/tools/webapi-test.py +2 -0
@@ -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
layerindex/update.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/update_layer.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
layerindex/urls.py +2 -0
@@ -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
layerindex/urls_branch.py +2 -0
@@ -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
layerindex/utils.py +2 -0
@@ -4,6 +4,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os
layerindex/views.py +2 -0
@@ -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
manage.py +2 -0
@@ -6,6 +6,8 @@ # # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. +# +# SPDX-License-Identifier: MIT import os import sys
password_validation.py +5 -0
@@ -1,3 +1,8 @@ +# Copyright (c) Django Software Foundation and individual contributors. +# All rights reserved. +# +# SPDX-License-Identifier: MIT + from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _
pytest.ini +5 -0
@@ -1,3 +1,8 @@ +# Copyright (c) Django Software Foundation and individual contributors. +# All rights reserved. +# +# SPDX-License-Identifier: MIT + [pytest] DJANGO_SETTINGS_MODULE = settings norecursedirs = .git layers
rrs/__init__.py +5 -0
@@ -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'
rrs/admin.py +2 -0
@@ -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
rrs/apps.py +6 -0
@@ -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
rrs/context_processors.py +2 -0
@@ -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
rrs/models.py +2 -0
@@ -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
rrs/tools/common.py +2 -0
@@ -4,6 +4,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os
rrs/tools/dump_upgrades.py +2 -0
@@ -5,6 +5,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
rrs/tools/historytool.py +2 -0
@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
rrs/tools/rrs_distros.py +2 -0
@@ -6,6 +6,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.path
rrs/tools/rrs_maintainer_history.py +2 -0
@@ -6,6 +6,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.path
rrs/tools/rrs_upgrade_history.py +2 -0
@@ -9,6 +9,8 @@ # Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.path
rrs/tools/rrs_upstream_email.py +2 -0
@@ -7,6 +7,8 @@ # Author: Aníbal Limón <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.path
rrs/tools/rrs_upstream_history.py +2 -0
@@ -6,6 +6,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.path
rrs/tools/upgrade_history_internal.py +2 -0
@@ -7,6 +7,8 @@ # Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys
rrs/urls.py +8 -0
@@ -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
rrs/views.py +8 -0
@@ -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
rrs/wsgi.py +6 -0
@@ -1,3 +1,9 @@ +# Copyright (C) 2014 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT + import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
settings.py +2 -0
@@ -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
tests/test_update.py +2 -0
@@ -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
urls.py +2 -0
@@ -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
wsgi.py +5 -0
@@ -1,3 +1,8 @@ +# Copyright (c) Django Software Foundation and individual contributors. +# All rights reserved. +# +# SPDX-License-Identifier: MIT + import os, sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") sys.path.append('/var/www/html/layerindex')
Signature · 1 line
2.17.1
Quoted 112 lines · Meh Mbeh Ida Delphine
Added SPDX identifiers to all .py files except those in migrations directory.
Fixes [YOCTO #13527]Signed-off-by Meh Mbeh Ida Delphine <[email protected]>--- __init__.py | 1 + docker/settings.py | 2 ++ dockersetup.py | 2 ++ layerindex/__init__.py | 5 +++++ layerindex/admin.py | 2 ++ layerindex/auth_forms.py | 2 ++ layerindex/auth_views.py | 2 ++ layerindex/bulkchange.py | 2 ++ layerindex/context_processors.py | 2 ++ layerindex/forms.py | 2 ++ layerindex/layerconfparse.py | 1 + layerindex/middleware.py | 2 ++ layerindex/models.py | 2 ++ layerindex/querysethelper.py | 8 ++++++++ layerindex/recipedesc.py | 2 ++ layerindex/recipeparse.py | 2 ++ layerindex/restperm.py | 6 ++++++ layerindex/restviews.py | 2 ++ layerindex/securityquestions.py | 8 ++++++++ layerindex/tasks.py | 2 ++ layerindex/templatetags/__init__.py | 5 +++++ layerindex/templatetags/extrafilters.py | 6 ++++++ layerindex/tools/fedora-fetch.py | 2 ++ layerindex/tools/fixup_duplicates.py | 2 ++ layerindex/tools/github-fetch.py | 2 ++ layerindex/tools/import_classic.py | 2 ++ layerindex/tools/import_classic_wiki.py | 2 ++ layerindex/tools/import_layer.py | 2 ++ layerindex/tools/import_layers.py | 2 ++ layerindex/tools/import_otherdistro.py | 2 ++ layerindex/tools/import_project.py | 2 ++ layerindex/tools/import_wiki_layers.py | 2 ++ layerindex/tools/site_name.py | 2 ++ layerindex/tools/update_classic_status.py | 2 ++ layerindex/tools/webapi-test.py | 2 ++ layerindex/update.py | 2 ++ layerindex/update_layer.py | 2 ++ layerindex/urls.py | 2 ++ layerindex/urls_branch.py | 2 ++ layerindex/utils.py | 2 ++ layerindex/views.py | 2 ++ manage.py | 2 ++ password_validation.py | 5 +++++ pytest.ini | 5 +++++ rrs/__init__.py | 5 +++++ rrs/admin.py | 2 ++ rrs/apps.py | 6 ++++++ rrs/context_processors.py | 2 ++ rrs/models.py | 2 ++ rrs/tools/common.py | 2 ++ rrs/tools/dump_upgrades.py | 2 ++ rrs/tools/historytool.py | 2 ++ rrs/tools/rrs_distros.py | 2 ++ rrs/tools/rrs_maintainer_history.py | 2 ++ rrs/tools/rrs_upgrade_history.py | 2 ++ rrs/tools/rrs_upstream_email.py | 2 ++ rrs/tools/rrs_upstream_history.py | 2 ++ rrs/tools/upgrade_history_internal.py | 2 ++ rrs/urls.py | 8 ++++++++ rrs/views.py | 8 ++++++++ rrs/wsgi.py | 6 ++++++ settings.py | 2 ++ tests/test_update.py | 2 ++ urls.py | 2 ++ wsgi.py | 5 +++++ 65 files changed, 186 insertions(+)__init__.py +1
-0@@ -0,0 +1 @@ +# SPDX-License-Identifier: MITdocker/settings.py +2
-0@@ -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 osdockersetup.py +2
-0@@ -6,6 +6,8 @@ # Author: Amber Elliot <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT # This script will make a cluster of 5 containers: #layerindex/__init__.py +0
-0
layerindex/__init__.py line 5
Quoted 6 lines
layerindex/__init__.py +5
-0@@ -0,0 +1,5 @@ +# Copyright (C) 2014 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT
It looks like your editor is not adding a final newline in some of these files. Most editors should have a setting to ensure a final newline is included in each file, if you can't find this you can also manually add a final newline where needed.
Quoted 811 lines
layerindex/admin.py +2
-0@@ -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 adminlayerindex/auth_forms.py +2
-0@@ -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 formslayerindex/auth_views.py +2
-0@@ -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 logoutlayerindex/bulkchange.py +2
-0@@ -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 oslayerindex/context_processors.py +2
-0@@ -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 Sitelayerindex/forms.py +2
-0@@ -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 OrderedDictlayerindex/layerconfparse.py +1
-0@@ -5,6 +5,7 @@ # # Licensed under the MIT license, see COPYING.MIT for details # +# SPDX-License-Identifier: MIT import sys import oslayerindex/middleware.py +2
-0@@ -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 HttpResponseRedirectlayerindex/models.py +2
-0@@ -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 datetimelayerindex/querysethelper.py +8
-0@@ -1,3 +1,11 @@ +# layerindex-web - queryset helper definitions +# +# Copyright (C) 2013-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, CharFieldlayerindex/recipedesc.py +2
-0@@ -4,6 +4,8 @@ # # Copyright (C) 2012 Intel Corporation # Author: Paul Eggleton <[email protected]> +# +# SPDX-License-Identifier: MIT import sys import os.pathlayerindex/recipeparse.py +2
-0@@ -4,6 +4,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import oslayerindex/restperm.py +6
-0@@ -1,3 +1,9 @@ +# Copyright (C) 2013-2018 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):layerindex/restviews.py +2
-0@@ -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, paginationlayerindex/securityquestions.py +8
-0@@ -1,3 +1,11 @@ +# layerindex-web - Security Questions +# +# Copyright (C) 2013-2018 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# 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?",layerindex/tasks.py +2
-0@@ -4,6 +4,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT from celery import Celery from django.core.mail import EmailMessagelayerindex/templatetags/__init__.py +5
-0@@ -0,0 +1,5 @@ +# Copyright (C) 2017, 2018 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MITlayerindex/templatetags/extrafilters.py +6
-0@@ -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 utilslayerindex/tools/fedora-fetch.py +2
-0@@ -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 oslayerindex/tools/fixup_duplicates.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/tools/github-fetch.py +2
-0@@ -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 oslayerindex/tools/import_classic.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/tools/import_classic_wiki.py +2
-0@@ -7,6 +7,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.pathlayerindex/tools/import_layer.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/tools/import_layers.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/tools/import_otherdistro.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/tools/import_project.py +2
-0@@ -9,6 +9,8 @@ # Author: Liam R. Howlett <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT from urllib.parse import urlparse import logginglayerindex/tools/import_wiki_layers.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/tools/site_name.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import oslayerindex/tools/update_classic_status.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import oslayerindex/tools/webapi-test.py +2
-0@@ -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 oslayerindex/update.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/update_layer.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import syslayerindex/urls.py +2
-0@@ -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, RedirectViewlayerindex/urls_branch.py +2
-0@@ -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_foundlayerindex/utils.py +2
-0@@ -4,6 +4,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import oslayerindex/views.py +2
-0@@ -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 sysmanage.py +2
-0@@ -6,6 +6,8 @@ # # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. +# +# SPDX-License-Identifier: MIT import os import syspassword_validation.py +5
-0@@ -1,3 +1,8 @@ +# Copyright (c) Django Software Foundation and individual contributors. +# All rights reserved. +# +# SPDX-License-Identifier: MIT + from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _pytest.ini +5
-0@@ -1,3 +1,8 @@ +# Copyright (c) Django Software Foundation and individual contributors. +# All rights reserved. +# +# SPDX-License-Identifier: MIT + [pytest] DJANGO_SETTINGS_MODULE = settings norecursedirs = .git layersrrs/__init__.py +5
-0@@ -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'rrs/admin.py +2
-0@@ -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 curryrrs/apps.py +6
-0@@ -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 AppConfigrrs/context_processors.py +2
-0@@ -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 Siterrs/models.py +2
-0@@ -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 osrrs/tools/common.py +2
-0@@ -4,6 +4,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import osrrs/tools/dump_upgrades.py +2
-0@@ -5,6 +5,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sysrrs/tools/historytool.py +2
-0@@ -6,6 +6,8 @@ # Author: Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sysrrs/tools/rrs_distros.py +2
-0@@ -6,6 +6,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.pathrrs/tools/rrs_maintainer_history.py +2
-0@@ -6,6 +6,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.pathrrs/tools/rrs_upgrade_history.py +2
-0@@ -9,6 +9,8 @@ # Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.pathrrs/tools/rrs_upstream_email.py +2
-0@@ -7,6 +7,8 @@ # Author: Aníbal Limón <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.pathrrs/tools/rrs_upstream_history.py +2
-0@@ -6,6 +6,8 @@ # Author: Anibal Limon <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sys import os.pathrrs/tools/upgrade_history_internal.py +2
-0@@ -7,6 +7,8 @@ # Paul Eggleton <[email protected]> # # Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT import sysrrs/urls.py +8
-0@@ -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, Milestonerrs/views.py +8
-0@@ -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 csvrrs/wsgi.py +6
-0@@ -1,3 +1,9 @@ +# Copyright (C) 2014 Intel Corporation +# +# Licensed under the MIT license, see COPYING.MIT for details +# +# SPDX-License-Identifier: MIT + import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")settings.py +2
-0@@ -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 ostests/test_update.py +2
-0@@ -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 commandsurls.py +2
-0@@ -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_lazywsgi.py +5
-1@@ -1,3 +1,8 @@ +# Copyright (c) Django Software Foundation and individual contributors. +# All rights reserved. +# +# SPDX-License-Identifier: MIT + import os, sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") sys.path.append('/var/www/html/layerindex') --2.17.1
Signature · 2 lines
Paul Barker Konsulko Group