From e874c76c4eac2b10039e8bb111344e1dee8d1219 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 17 Sep 2018 11:59:56 +0100 Subject: [PATCH] Update license header The FSF has a new address since 2005 that hasn't been noted in any file except the COPYING file. Rather than fix these, simply remove the headers in favour of a SPDX license header. IANAL but the combination of the header and the COPYING file in source should resolve this issue. Note that copyright notices are retained. Signed-off-by: Stephen Finucane Closes: #210 Reviewed-by: Veronika Kabatova --- patchwork/__init__.py | 16 +--------------- patchwork/admin.py | 16 +--------------- patchwork/api/base.py | 16 +--------------- patchwork/api/bundle.py | 16 +--------------- patchwork/api/check.py | 16 +--------------- patchwork/api/comment.py | 16 +--------------- patchwork/api/cover.py | 16 +--------------- patchwork/api/embedded.py | 16 +--------------- patchwork/api/event.py | 16 +--------------- patchwork/api/filters.py | 16 +--------------- patchwork/api/index.py | 16 +--------------- patchwork/api/patch.py | 16 +--------------- patchwork/api/person.py | 16 +--------------- patchwork/api/project.py | 16 +--------------- patchwork/api/series.py | 16 +--------------- patchwork/api/user.py | 16 +--------------- patchwork/apps.py | 16 +--------------- patchwork/bin/parsemail-batch.sh | 16 +--------------- patchwork/bin/parsemail.sh | 16 +--------------- patchwork/bin/pwclient | 16 +--------------- patchwork/compat.py | 16 +--------------- patchwork/context_processors.py | 16 +--------------- patchwork/fields.py | 16 +--------------- patchwork/filters.py | 16 +--------------- patchwork/forms.py | 16 +--------------- patchwork/hasher.py | 16 +--------------- patchwork/management/commands/cron.py | 16 +--------------- patchwork/management/commands/parsearchive.py | 16 +--------------- patchwork/management/commands/parsemail.py | 16 +--------------- patchwork/management/commands/rehash.py | 18 +----------------- patchwork/management/commands/retag.py | 16 +--------------- patchwork/models.py | 16 +--------------- patchwork/notifications.py | 16 +--------------- patchwork/paginator.py | 16 +--------------- patchwork/parser.py | 16 +--------------- patchwork/signals.py | 16 +--------------- patchwork/templatetags/listurl.py | 16 +--------------- patchwork/templatetags/patch.py | 16 +--------------- patchwork/templatetags/person.py | 16 +--------------- patchwork/templatetags/project.py | 16 +--------------- patchwork/templatetags/syntax.py | 16 +--------------- patchwork/tests/__init__.py | 16 +--------------- patchwork/tests/api/test_bundle.py | 16 +--------------- patchwork/tests/api/test_check.py | 16 +--------------- patchwork/tests/api/test_comment.py | 16 +--------------- patchwork/tests/api/test_cover.py | 16 +--------------- patchwork/tests/api/test_patch.py | 16 +--------------- patchwork/tests/api/test_person.py | 16 +--------------- patchwork/tests/api/test_project.py | 16 +--------------- patchwork/tests/api/test_series.py | 16 +--------------- patchwork/tests/api/test_user.py | 16 +--------------- patchwork/tests/test_about.py | 16 +--------------- patchwork/tests/test_bundles.py | 16 +--------------- patchwork/tests/test_checks.py | 16 +--------------- patchwork/tests/test_completion.py | 16 +--------------- patchwork/tests/test_confirm.py | 16 +--------------- patchwork/tests/test_detail.py | 16 +--------------- patchwork/tests/test_encodings.py | 16 +--------------- patchwork/tests/test_events.py | 16 +--------------- patchwork/tests/test_expiry.py | 16 +--------------- patchwork/tests/test_fields.py | 16 +--------------- patchwork/tests/test_filters.py | 16 +--------------- patchwork/tests/test_list.py | 16 +--------------- patchwork/tests/test_mail_settings.py | 16 +--------------- patchwork/tests/test_management.py | 16 +--------------- patchwork/tests/test_mboxviews.py | 18 ++---------------- patchwork/tests/test_notifications.py | 16 +--------------- patchwork/tests/test_paginator.py | 16 +--------------- patchwork/tests/test_parser.py | 16 +--------------- patchwork/tests/test_projects.py | 16 +--------------- patchwork/tests/test_registration.py | 16 +--------------- patchwork/tests/test_series.py | 16 +--------------- patchwork/tests/test_tags.py | 16 +--------------- patchwork/tests/test_updates.py | 16 +--------------- patchwork/tests/test_user.py | 16 +--------------- patchwork/tests/test_xmlrpc.py | 16 +--------------- patchwork/tests/utils.py | 16 +--------------- patchwork/urls.py | 16 +--------------- patchwork/version.py | 16 +--------------- patchwork/views/__init__.py | 16 +--------------- patchwork/views/about.py | 16 +--------------- patchwork/views/api.py | 16 +--------------- patchwork/views/bundle.py | 16 +--------------- patchwork/views/comment.py | 16 +--------------- patchwork/views/cover.py | 16 +--------------- patchwork/views/mail.py | 16 +--------------- patchwork/views/notification.py | 16 +--------------- patchwork/views/patch.py | 16 +--------------- patchwork/views/project.py | 16 +--------------- patchwork/views/pwclient.py | 16 +--------------- patchwork/views/series.py | 16 +--------------- patchwork/views/user.py | 16 +--------------- patchwork/views/utils.py | 16 +--------------- patchwork/views/xmlrpc.py | 19 +------------------ patchwork/wsgi.py | 17 +---------------- tools/patchwork-update-commits | 16 +--------------- tools/post-receive.hook | 17 ++--------------- 97 files changed, 99 insertions(+), 1462 deletions(-) diff --git a/patchwork/__init__.py b/patchwork/__init__.py index c0a4a861..fc97dadf 100644 --- a/patchwork/__init__.py +++ b/patchwork/__init__.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from patchwork.version import get_latest_version diff --git a/patchwork/admin.py b/patchwork/admin.py index bab94a34..c70d106e 100644 --- a/patchwork/admin.py +++ b/patchwork/admin.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin diff --git a/patchwork/api/base.py b/patchwork/api/base.py index bf452f78..943afa21 100644 --- a/patchwork/api/base.py +++ b/patchwork/api/base.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from distutils.version import StrictVersion diff --git a/patchwork/api/bundle.py b/patchwork/api/bundle.py index 7b147e1d..04045888 100644 --- a/patchwork/api/bundle.py +++ b/patchwork/api/bundle.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.db.models import Q from rest_framework.generics import ListAPIView diff --git a/patchwork/api/check.py b/patchwork/api/check.py index 5e461de6..7dc97970 100644 --- a/patchwork/api/check.py +++ b/patchwork/api/check.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from rest_framework.exceptions import PermissionDenied from rest_framework.generics import ListCreateAPIView diff --git a/patchwork/api/comment.py b/patchwork/api/comment.py index 5a5adb1d..214a9438 100644 --- a/patchwork/api/comment.py +++ b/patchwork/api/comment.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2018 Red Hat # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email.parser diff --git a/patchwork/api/cover.py b/patchwork/api/cover.py index b497fd85..d3d26bdf 100644 --- a/patchwork/api/cover.py +++ b/patchwork/api/cover.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email.parser diff --git a/patchwork/api/embedded.py b/patchwork/api/embedded.py index 1d5aba84..be61cd5f 100644 --- a/patchwork/api/embedded.py +++ b/patchwork/api/embedded.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later """Serializers for embedded use. diff --git a/patchwork/api/event.py b/patchwork/api/event.py index cce25a75..7fec6740 100644 --- a/patchwork/api/event.py +++ b/patchwork/api/event.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from collections import OrderedDict diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py index ddf527fd..37aca82d 100644 --- a/patchwork/api/filters.py +++ b/patchwork/api/filters.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.auth.models import User from django.core.exceptions import ValidationError diff --git a/patchwork/api/index.py b/patchwork/api/index.py index 53494db7..2266635c 100644 --- a/patchwork/api/index.py +++ b/patchwork/api/index.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from rest_framework.response import Response from rest_framework.reverse import reverse diff --git a/patchwork/api/patch.py b/patchwork/api/patch.py index 9d890eb1..f400c138 100644 --- a/patchwork/api/patch.py +++ b/patchwork/api/patch.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email.parser diff --git a/patchwork/api/person.py b/patchwork/api/person.py index 326c117e..c806c0dd 100644 --- a/patchwork/api/person.py +++ b/patchwork/api/person.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from rest_framework.serializers import HyperlinkedModelSerializer from rest_framework.generics import ListAPIView diff --git a/patchwork/api/project.py b/patchwork/api/project.py index 6f1affad..deef2907 100644 --- a/patchwork/api/project.py +++ b/patchwork/api/project.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.shortcuts import get_object_or_404 from rest_framework.generics import ListAPIView diff --git a/patchwork/api/series.py b/patchwork/api/series.py index 14768efb..5d4183b6 100644 --- a/patchwork/api/series.py +++ b/patchwork/api/series.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from rest_framework.generics import ListAPIView from rest_framework.generics import RetrieveAPIView diff --git a/patchwork/api/user.py b/patchwork/api/user.py index 1bfad43d..e11bed4b 100644 --- a/patchwork/api/user.py +++ b/patchwork/api/user.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.auth.models import User from rest_framework.generics import ListAPIView diff --git a/patchwork/apps.py b/patchwork/apps.py index 5bd5f53a..7b5abc55 100644 --- a/patchwork/apps.py +++ b/patchwork/apps.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.apps import AppConfig diff --git a/patchwork/bin/parsemail-batch.sh b/patchwork/bin/parsemail-batch.sh index 8928d0a3..c3ce48bf 100755 --- a/patchwork/bin/parsemail-batch.sh +++ b/patchwork/bin/parsemail-batch.sh @@ -3,21 +3,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later BIN_DIR=$(dirname "$0") PATCHWORK_BASE=$(readlink -e "$BIN_DIR/../..") diff --git a/patchwork/bin/parsemail.sh b/patchwork/bin/parsemail.sh index c9c9b6a1..57a231cd 100755 --- a/patchwork/bin/parsemail.sh +++ b/patchwork/bin/parsemail.sh @@ -3,21 +3,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later BIN_DIR=$(dirname "$0") PATCHWORK_BASE=$(readlink -e "$BIN_DIR/../..") diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient index 2020a8c0..2cff3a35 100755 --- a/patchwork/bin/pwclient +++ b/patchwork/bin/pwclient @@ -4,21 +4,7 @@ # Patchwork command line client # Copyright (C) 2008 Nate Case # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from __future__ import print_function from __future__ import unicode_literals diff --git a/patchwork/compat.py b/patchwork/compat.py index 8f07bbf3..8fcb04cf 100644 --- a/patchwork/compat.py +++ b/patchwork/compat.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later """Compatibility wrappers for various library versions.""" diff --git a/patchwork/context_processors.py b/patchwork/context_processors.py index b021b311..29b1bc95 100644 --- a/patchwork/context_processors.py +++ b/patchwork/context_processors.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.sites.models import Site diff --git a/patchwork/fields.py b/patchwork/fields.py index c10432b9..dd29ea08 100644 --- a/patchwork/fields.py +++ b/patchwork/fields.py @@ -2,21 +2,7 @@ # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2015 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import hashlib diff --git a/patchwork/filters.py b/patchwork/filters.py index 7b5db117..6cfe41c9 100644 --- a/patchwork/filters.py +++ b/patchwork/filters.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.auth.models import User from django.utils.html import escape diff --git a/patchwork/forms.py b/patchwork/forms.py index 0dd11857..f112dccc 100644 --- a/patchwork/forms.py +++ b/patchwork/forms.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.auth.models import User from django import forms diff --git a/patchwork/hasher.py b/patchwork/hasher.py index d9bb6c22..e2a96cd1 100644 --- a/patchwork/hasher.py +++ b/patchwork/hasher.py @@ -3,21 +3,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later """Hash generation for diffs.""" diff --git a/patchwork/management/commands/cron.py b/patchwork/management/commands/cron.py index 2be234b1..609b93d9 100644 --- a/patchwork/management/commands/cron.py +++ b/patchwork/management/commands/cron.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2015 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.core.management.base import BaseCommand diff --git a/patchwork/management/commands/parsearchive.py b/patchwork/management/commands/parsearchive.py index 5468d35e..96f64fa7 100644 --- a/patchwork/management/commands/parsearchive.py +++ b/patchwork/management/commands/parsearchive.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import logging import mailbox diff --git a/patchwork/management/commands/parsemail.py b/patchwork/management/commands/parsemail.py index f62fb4f5..a7ec97ff 100644 --- a/patchwork/management/commands/parsemail.py +++ b/patchwork/management/commands/parsemail.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email import logging diff --git a/patchwork/management/commands/rehash.py b/patchwork/management/commands/rehash.py index 8d6da957..713102ff 100644 --- a/patchwork/management/commands/rehash.py +++ b/patchwork/management/commands/rehash.py @@ -1,24 +1,8 @@ -#!/usr/bin/env python -# # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2015 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.core.management.base import BaseCommand diff --git a/patchwork/management/commands/retag.py b/patchwork/management/commands/retag.py index 8617ff41..d17e4a65 100644 --- a/patchwork/management/commands/retag.py +++ b/patchwork/management/commands/retag.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2015 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.core.management.base import BaseCommand diff --git a/patchwork/models.py b/patchwork/models.py index 2bc026a0..a043844d 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -2,21 +2,7 @@ # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2015 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from collections import Counter from collections import OrderedDict diff --git a/patchwork/notifications.py b/patchwork/notifications.py index a5f64235..3922fafa 100644 --- a/patchwork/notifications.py +++ b/patchwork/notifications.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import datetime import itertools diff --git a/patchwork/paginator.py b/patchwork/paginator.py index 1696cba5..a2b640d8 100644 --- a/patchwork/paginator.py +++ b/patchwork/paginator.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django.core import paginator diff --git a/patchwork/parser.py b/patchwork/parser.py index 40a80f26..4ede8255 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import codecs import datetime diff --git a/patchwork/signals.py b/patchwork/signals.py index f7b4f547..b7b8e6f5 100644 --- a/patchwork/signals.py +++ b/patchwork/signals.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from datetime import datetime as dt diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py index c987fb47..62ccd96b 100644 --- a/patchwork/templatetags/listurl.py +++ b/patchwork/templatetags/listurl.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django import template diff --git a/patchwork/templatetags/patch.py b/patchwork/templatetags/patch.py index c5dbf255..5d387a49 100644 --- a/patchwork/templatetags/patch.py +++ b/patchwork/templatetags/patch.py @@ -2,21 +2,7 @@ # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2015 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django import template from django.utils.safestring import mark_safe diff --git a/patchwork/templatetags/person.py b/patchwork/templatetags/person.py index 8036a77f..61937d94 100644 --- a/patchwork/templatetags/person.py +++ b/patchwork/templatetags/person.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django import template from django.urls import reverse diff --git a/patchwork/templatetags/project.py b/patchwork/templatetags/project.py index fa338959..0fad8eb2 100644 --- a/patchwork/templatetags/project.py +++ b/patchwork/templatetags/project.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django import template from django.utils.safestring import mark_safe diff --git a/patchwork/templatetags/syntax.py b/patchwork/templatetags/syntax.py index 78877401..69830866 100644 --- a/patchwork/templatetags/syntax.py +++ b/patchwork/templatetags/syntax.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import re diff --git a/patchwork/tests/__init__.py b/patchwork/tests/__init__.py index cbe2b5d0..8f78ea79 100644 --- a/patchwork/tests/__init__.py +++ b/patchwork/tests/__init__.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import os diff --git a/patchwork/tests/api/test_bundle.py b/patchwork/tests/api/test_bundle.py index e0dd8098..2de4f99d 100644 --- a/patchwork/tests/api/test_bundle.py +++ b/patchwork/tests/api/test_bundle.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/api/test_check.py b/patchwork/tests/api/test_check.py index 6f4aa5de..80e53cc0 100644 --- a/patchwork/tests/api/test_check.py +++ b/patchwork/tests/api/test_check.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/api/test_comment.py b/patchwork/tests/api/test_comment.py index f82c881a..a0aec594 100644 --- a/patchwork/tests/api/test_comment.py +++ b/patchwork/tests/api/test_comment.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2018 Red Hat # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/api/test_cover.py b/patchwork/tests/api/test_cover.py index 5061d651..a5686292 100644 --- a/patchwork/tests/api/test_cover.py +++ b/patchwork/tests/api/test_cover.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email.parser import unittest diff --git a/patchwork/tests/api/test_patch.py b/patchwork/tests/api/test_patch.py index 104f7c8a..3d6dad9c 100644 --- a/patchwork/tests/api/test_patch.py +++ b/patchwork/tests/api/test_patch.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email.parser from email.utils import make_msgid diff --git a/patchwork/tests/api/test_person.py b/patchwork/tests/api/test_person.py index 688a00e9..3a89e73e 100644 --- a/patchwork/tests/api/test_person.py +++ b/patchwork/tests/api/test_person.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/api/test_project.py b/patchwork/tests/api/test_project.py index 6c5c9c6d..a4a93965 100644 --- a/patchwork/tests/api/test_project.py +++ b/patchwork/tests/api/test_project.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/api/test_series.py b/patchwork/tests/api/test_series.py index 13872575..4d576fc0 100644 --- a/patchwork/tests/api/test_series.py +++ b/patchwork/tests/api/test_series.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2018 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/api/test_user.py b/patchwork/tests/api/test_user.py index 4b4171ea..225b0778 100644 --- a/patchwork/tests/api/test_user.py +++ b/patchwork/tests/api/test_user.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Linaro Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/test_about.py b/patchwork/tests/test_about.py index ba8fd982..99892cb0 100644 --- a/patchwork/tests/test_about.py +++ b/patchwork/tests/test_about.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_bundles.py b/patchwork/tests/test_bundles.py index bdeb549f..c88c2a84 100644 --- a/patchwork/tests/test_bundles.py +++ b/patchwork/tests/test_bundles.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2009 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import base64 import datetime diff --git a/patchwork/tests/test_checks.py b/patchwork/tests/test_checks.py index 797390c8..d455e98f 100644 --- a/patchwork/tests/test_checks.py +++ b/patchwork/tests/test_checks.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2015 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from datetime import datetime as dt from datetime import timedelta diff --git a/patchwork/tests/test_completion.py b/patchwork/tests/test_completion.py index 834d6498..ebcac669 100644 --- a/patchwork/tests/test_completion.py +++ b/patchwork/tests/test_completion.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2013 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import json diff --git a/patchwork/tests/test_confirm.py b/patchwork/tests/test_confirm.py index 7d805300..213e0f4d 100644 --- a/patchwork/tests/test_confirm.py +++ b/patchwork/tests/test_confirm.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2011 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_detail.py b/patchwork/tests/test_detail.py index 8faec6cd..9c44779a 100644 --- a/patchwork/tests/test_detail.py +++ b/patchwork/tests/test_detail.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_encodings.py b/patchwork/tests/test_encodings.py index 5a56d4b1..883dfc44 100644 --- a/patchwork/tests/test_encodings.py +++ b/patchwork/tests/test_encodings.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_events.py b/patchwork/tests/test_events.py index 70d563de..b9952f64 100644 --- a/patchwork/tests/test_events.py +++ b/patchwork/tests/test_events.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2015 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase diff --git a/patchwork/tests/test_expiry.py b/patchwork/tests/test_expiry.py index ce308bc1..2c6ec2b0 100644 --- a/patchwork/tests/test_expiry.py +++ b/patchwork/tests/test_expiry.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2014 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import datetime diff --git a/patchwork/tests/test_fields.py b/patchwork/tests/test_fields.py index fbe1ab6f..577b7b23 100644 --- a/patchwork/tests/test_fields.py +++ b/patchwork/tests/test_fields.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import SimpleTestCase diff --git a/patchwork/tests/test_filters.py b/patchwork/tests/test_filters.py index 44180f90..a69c4f85 100644 --- a/patchwork/tests/test_filters.py +++ b/patchwork/tests/test_filters.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2011 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_list.py b/patchwork/tests/test_list.py index 64631878..1c0503fa 100644 --- a/patchwork/tests/test_list.py +++ b/patchwork/tests/test_list.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2012 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from datetime import datetime as dt import re diff --git a/patchwork/tests/test_mail_settings.py b/patchwork/tests/test_mail_settings.py index a6f49645..2c826692 100644 --- a/patchwork/tests/test_mail_settings.py +++ b/patchwork/tests/test_mail_settings.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import re diff --git a/patchwork/tests/test_management.py b/patchwork/tests/test_management.py index 66f88dfa..84a3839d 100644 --- a/patchwork/tests/test_management.py +++ b/patchwork/tests/test_management.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import os import sys diff --git a/patchwork/tests/test_mboxviews.py b/patchwork/tests/test_mboxviews.py index b7af746b..eadfd81c 100644 --- a/patchwork/tests/test_mboxviews.py +++ b/patchwork/tests/test_mboxviews.py @@ -1,23 +1,9 @@ # vim: set fileencoding=utf-8 : -# + # Patchwork - automated patch tracking system # Copyright (C) 2009 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import datetime import dateutil.parser diff --git a/patchwork/tests/test_notifications.py b/patchwork/tests/test_notifications.py index 6d902f89..5b575fb2 100644 --- a/patchwork/tests/test_notifications.py +++ b/patchwork/tests/test_notifications.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2011 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import datetime diff --git a/patchwork/tests/test_paginator.py b/patchwork/tests/test_paginator.py index 2f2b6e13..5cf47a68 100644 --- a/patchwork/tests/test_paginator.py +++ b/patchwork/tests/test_paginator.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_parser.py b/patchwork/tests/test_parser.py index e99cf214..a9df5e35 100644 --- a/patchwork/tests/test_parser.py +++ b/patchwork/tests/test_parser.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import email from email import message_from_string diff --git a/patchwork/tests/test_projects.py b/patchwork/tests/test_projects.py index 67ac1250..81d163c4 100644 --- a/patchwork/tests/test_projects.py +++ b/patchwork/tests/test_projects.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_registration.py b/patchwork/tests/test_registration.py index 2158dcf5..5e7a49db 100644 --- a/patchwork/tests/test_registration.py +++ b/patchwork/tests/test_registration.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.auth.models import User from django.core import mail diff --git a/patchwork/tests/test_series.py b/patchwork/tests/test_series.py index 6892a615..bb44e39d 100644 --- a/patchwork/tests/test_series.py +++ b/patchwork/tests/test_series.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import mailbox import os diff --git a/patchwork/tests/test_tags.py b/patchwork/tests/test_tags.py index 4fd1bf23..97afba0a 100644 --- a/patchwork/tests/test_tags.py +++ b/patchwork/tests/test_tags.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2014 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.test import TransactionTestCase diff --git a/patchwork/tests/test_updates.py b/patchwork/tests/test_updates.py index 89f2091a..e136aeef 100644 --- a/patchwork/tests/test_updates.py +++ b/patchwork/tests/test_updates.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.test import TestCase from django.urls import reverse diff --git a/patchwork/tests/test_user.py b/patchwork/tests/test_user.py index 05fe6d5e..b476dbf1 100644 --- a/patchwork/tests/test_user.py +++ b/patchwork/tests/test_user.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib.auth.models import User from django.core import mail diff --git a/patchwork/tests/test_xmlrpc.py b/patchwork/tests/test_xmlrpc.py index a31cdde0..461dfe63 100644 --- a/patchwork/tests/test_xmlrpc.py +++ b/patchwork/tests/test_xmlrpc.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2014 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import unittest diff --git a/patchwork/tests/utils.py b/patchwork/tests/utils.py index 00eb6c2a..d280fd69 100644 --- a/patchwork/tests/utils.py +++ b/patchwork/tests/utils.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import codecs from datetime import datetime as dt diff --git a/patchwork/urls.py b/patchwork/urls.py index c5e31276..935e25fa 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django.conf.urls import url, include diff --git a/patchwork/version.py b/patchwork/version.py index 16b7f617..834e0f67 100644 --- a/patchwork/version.py +++ b/patchwork/version.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import subprocess import os diff --git a/patchwork/views/__init__.py b/patchwork/views/__init__.py index 5942ded8..0c64c93e 100644 --- a/patchwork/views/__init__.py +++ b/patchwork/views/__init__.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib import messages from django.shortcuts import get_object_or_404 diff --git a/patchwork/views/about.py b/patchwork/views/about.py index 508dec37..0061a319 100644 --- a/patchwork/views/about.py +++ b/patchwork/views/about.py @@ -2,21 +2,7 @@ # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django.http import HttpResponsePermanentRedirect diff --git a/patchwork/views/api.py b/patchwork/views/api.py index bdd2a692..55ffad9c 100644 --- a/patchwork/views/api.py +++ b/patchwork/views/api.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import json diff --git a/patchwork/views/bundle.py b/patchwork/views/bundle.py index 714062c3..1068c6a9 100644 --- a/patchwork/views/bundle.py +++ b/patchwork/views/bundle.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django.contrib.auth.decorators import login_required diff --git a/patchwork/views/comment.py b/patchwork/views/comment.py index c9763227..4aa924b9 100644 --- a/patchwork/views/comment.py +++ b/patchwork/views/comment.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django import http from django import shortcuts diff --git a/patchwork/views/cover.py b/patchwork/views/cover.py index 62b3d6b2..cb8fd3ca 100644 --- a/patchwork/views/cover.py +++ b/patchwork/views/cover.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2016 Intel Corporation # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.http import Http404 from django.http import HttpResponse diff --git a/patchwork/views/mail.py b/patchwork/views/mail.py index aca7ab15..49aa27ee 100644 --- a/patchwork/views/mail.py +++ b/patchwork/views/mail.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import smtplib diff --git a/patchwork/views/notification.py b/patchwork/views/notification.py index 30002155..4e023867 100644 --- a/patchwork/views/notification.py +++ b/patchwork/views/notification.py @@ -2,21 +2,7 @@ # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2016 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.http import Http404 from django.shortcuts import get_object_or_404 diff --git a/patchwork/views/patch.py b/patchwork/views/patch.py index 0aa9fc65..862dc83d 100644 --- a/patchwork/views/patch.py +++ b/patchwork/views/patch.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.contrib import messages from django.http import Http404 diff --git a/patchwork/views/project.py b/patchwork/views/project.py index a0c4db42..8fa41794 100644 --- a/patchwork/views/project.py +++ b/patchwork/views/project.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2009 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django.contrib.auth.models import User diff --git a/patchwork/views/pwclient.py b/patchwork/views/pwclient.py index c5dc8061..c6d8b342 100644 --- a/patchwork/views/pwclient.py +++ b/patchwork/views/pwclient.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.conf import settings from django.shortcuts import get_object_or_404 diff --git a/patchwork/views/series.py b/patchwork/views/series.py index ce528530..e0df3adf 100644 --- a/patchwork/views/series.py +++ b/patchwork/views/series.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later from django.http import HttpResponse from django.shortcuts import get_object_or_404 diff --git a/patchwork/views/user.py b/patchwork/views/user.py index 8dcb407b..36cd4b9d 100644 --- a/patchwork/views/user.py +++ b/patchwork/views/user.py @@ -1,21 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import smtplib diff --git a/patchwork/views/utils.py b/patchwork/views/utils.py index 3bf7af3c..a2be2c88 100644 --- a/patchwork/views/utils.py +++ b/patchwork/views/utils.py @@ -2,21 +2,7 @@ # Copyright (C) 2008 Jeremy Kerr # Copyright (C) 2017 Stephen Finucane # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later import datetime from email.encoders import encode_7or8bit diff --git a/patchwork/views/xmlrpc.py b/patchwork/views/xmlrpc.py index 11e5c3a2..f6072504 100644 --- a/patchwork/views/xmlrpc.py +++ b/patchwork/views/xmlrpc.py @@ -1,24 +1,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2008 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Patchwork XMLRPC interface -# +# SPDX-License-Identifier: GPL-2.0-or-later import base64 # NOTE(stephenfin) six does not seem to support this diff --git a/patchwork/wsgi.py b/patchwork/wsgi.py index 714ea120..71969c33 100644 --- a/patchwork/wsgi.py +++ b/patchwork/wsgi.py @@ -4,22 +4,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Martin F. Krafft # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# Released under the GNU General Public License v2 or later. +# SPDX-License-Identifier: GPL-2.0-or-later import os diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits index c84a6305..62c91c32 100755 --- a/tools/patchwork-update-commits +++ b/tools/patchwork-update-commits @@ -3,21 +3,7 @@ # Patchwork - automated patch tracking system # Copyright (C) 2010 Jeremy Kerr # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later TOOLS_DIR="$(dirname "$0")" PW_DIR="${TOOLS_DIR}/../patchwork" diff --git a/tools/post-receive.hook b/tools/post-receive.hook index 7f8ae7ee..81a519ef 100755 --- a/tools/post-receive.hook +++ b/tools/post-receive.hook @@ -1,22 +1,9 @@ #!/bin/bash + # Patchwork - automated patch tracking system # Copyright (C) 2010 martin f. krafft # -# This file is part of the Patchwork package. -# -# Patchwork is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# Patchwork is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Patchwork; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# SPDX-License-Identifier: GPL-2.0-or-later # Git post-receive hook to update Patchwork patches after Git pushes set -eu