From 2321dd6df36f8fd9219c0cd7a0d7d0141e8399b9 Mon Sep 17 00:00:00 2001 From: Matt Jia Date: Jun 15 2017 00:09:09 +0000 Subject: use `SPDX-License-Identifier` for license headers --- diff --git a/greenwave/__init__.py b/greenwave/__init__.py index 8490c3e..f29e19c 100644 --- a/greenwave/__init__.py +++ b/greenwave/__init__.py @@ -1,21 +1,5 @@ # -*- coding: utf-8 -*- -# -# This file is part of the Greenwave project. -# Copyright (C) 2017 Red Hat, Inc. -# -# This program 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. -# -# This program 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 this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0+ """ Greenwave is a web application built using `Flask`_ and `SQLAlchemy`_. diff --git a/greenwave/api_v1.py b/greenwave/api_v1.py index 69eb064..b0f369b 100644 --- a/greenwave/api_v1.py +++ b/greenwave/api_v1.py @@ -1,14 +1,4 @@ - -# This program 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. -# -# This program 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. -# +# SPDX-License-Identifier: GPL-2.0+ import requests from flask import Blueprint, request, current_app, jsonify diff --git a/greenwave/app_factory.py b/greenwave/app_factory.py index d2e9eec..1c59187 100644 --- a/greenwave/app_factory.py +++ b/greenwave/app_factory.py @@ -1,13 +1,4 @@ - -# This program 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. -# -# This program 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. +# SPDX-License-Identifier: GPL-2.0+ import os diff --git a/greenwave/config.py b/greenwave/config.py index 1dd8ec1..b4ddbb8 100644 --- a/greenwave/config.py +++ b/greenwave/config.py @@ -1,13 +1,4 @@ - -# This program 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. -# -# This program 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. +# SPDX-License-Identifier: GPL-2.0+ class Config(object): diff --git a/greenwave/logger.py b/greenwave/logger.py index 7881b9b..8857a21 100644 --- a/greenwave/logger.py +++ b/greenwave/logger.py @@ -1,13 +1,4 @@ - -# This program 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. -# -# This program 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. +# SPDX-License-Identifier: GPL-2.0+ import logging import sys diff --git a/greenwave/policies.py b/greenwave/policies.py index adbe294..1d7aedd 100644 --- a/greenwave/policies.py +++ b/greenwave/policies.py @@ -1,14 +1,4 @@ - -# This program 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. -# -# This program 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. -# +# SPDX-License-Identifier: GPL-2.0+ policies = { # Mimic the default Errata rule used for RHEL-7 https://errata.devel.redhat.com/workflow_rules/1 diff --git a/greenwave/tests/__init__.py b/greenwave/tests/__init__.py index b3e8c0f..5f1248d 100644 --- a/greenwave/tests/__init__.py +++ b/greenwave/tests/__init__.py @@ -1,21 +1,5 @@ # -*- coding: utf-8 -*- -# -# This file is part of the Greenwave project. -# Copyright (C) 2017 Red Hat, Inc. -# -# This program 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. -# -# This program 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 this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0+ """ Greenwave uses the Python `unittest`_ framework for unit tests. diff --git a/greenwave/tests/conftest.py b/greenwave/tests/conftest.py index 3c288e3..ce6922b 100644 --- a/greenwave/tests/conftest.py +++ b/greenwave/tests/conftest.py @@ -1,14 +1,4 @@ - -# This program 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. -# -# This program 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. -# +# SPDX-License-Identifier: GPL-2.0+ import pytest from greenwave.app_factory import create_app diff --git a/greenwave/tests/test_api_v10.py b/greenwave/tests/test_api_v10.py index 8210e13..1be6d5d 100644 --- a/greenwave/tests/test_api_v10.py +++ b/greenwave/tests/test_api_v10.py @@ -1,13 +1,4 @@ - -# This program 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. -# -# This program 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. +# SPDX-License-Identifier: GPL-2.0+ import json import requests_mock diff --git a/run-dev-server.py b/run-dev-server.py index a72d21c..b963378 100644 --- a/run-dev-server.py +++ b/run-dev-server.py @@ -1,15 +1,6 @@ #!/usr/bin/python -# This program 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. -# -# This program 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. -# +# SPDX-License-Identifier: GPL-2.0+ from greenwave.app_factory import create_app diff --git a/setup.py b/setup.py index 5f64370..7f23873 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,5 @@ # -*- coding: utf-8 -*- -# -# This file is part of the Greenwave project. -# Copyright (C) 2017 Red Hat, Inc. -# -# This program 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. -# -# This program 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 this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0+ import os import re