From b8d86ccc0a3614bd0226a7f8baa4348512e144c6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Feb 2022 15:27:52 +1100 Subject: File headers: use SPDX license identifiers See T95597 --- sun_position/__init__.py | 18 +----------------- sun_position/geo.py | 20 +++----------------- sun_position/hdr.py | 18 +----------------- sun_position/north.py | 18 +----------------- sun_position/properties.py | 18 +----------------- sun_position/sun_calc.py | 18 +----------------- sun_position/ui_sun.py | 18 +----------------- 7 files changed, 9 insertions(+), 119 deletions(-) (limited to 'sun_position') diff --git a/sun_position/__init__.py b/sun_position/__init__.py index e59a0932..34808dd4 100644 --- a/sun_position/__init__.py +++ b/sun_position/__init__.py @@ -1,20 +1,4 @@ -### BEGIN GPL LICENSE BLOCK ##### -# -# 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. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # -------------------------------------------------------------------------- # The sun positioning algorithms are based on the National Oceanic diff --git a/sun_position/geo.py b/sun_position/geo.py index 72404195..d2844a7f 100644 --- a/sun_position/geo.py +++ b/sun_position/geo.py @@ -1,24 +1,10 @@ #!/usr/bin/env python -# +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2010 Maximilian Hoegner . + # geo.py is a python module with no dependencies on extra packages, # providing some convenience functions for working with geographic # coordinates -# -# Copyright (C) 2010 Maximilian Hoegner -# -# 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 3 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, see . -# ### Part one - Functions for dealing with points on a sphere ### diff --git a/sun_position/hdr.py b/sun_position/hdr.py index e117e3b3..a80b0e76 100644 --- a/sun_position/hdr.py +++ b/sun_position/hdr.py @@ -1,20 +1,4 @@ -### BEGIN GPL LICENSE BLOCK ##### -# -# 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. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # -*- coding: utf-8 -*- diff --git a/sun_position/north.py b/sun_position/north.py index 0c0a41af..c343df05 100644 --- a/sun_position/north.py +++ b/sun_position/north.py @@ -1,20 +1,4 @@ -### BEGIN GPL LICENSE BLOCK ##### -# -# 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. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later import bpy import math diff --git a/sun_position/properties.py b/sun_position/properties.py index 8d505414..ef3a21e3 100644 --- a/sun_position/properties.py +++ b/sun_position/properties.py @@ -1,20 +1,4 @@ -### BEGIN GPL LICENSE BLOCK ##### -# -# 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. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later import bpy from bpy.types import AddonPreferences, PropertyGroup diff --git a/sun_position/sun_calc.py b/sun_position/sun_calc.py index 26161888..39c8444e 100644 --- a/sun_position/sun_calc.py +++ b/sun_position/sun_calc.py @@ -1,20 +1,4 @@ -### BEGIN GPL LICENSE BLOCK ##### -# -# 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. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later import bpy from bpy.app.handlers import persistent diff --git a/sun_position/ui_sun.py b/sun_position/ui_sun.py index 49f04e33..1f4f8f34 100644 --- a/sun_position/ui_sun.py +++ b/sun_position/ui_sun.py @@ -1,20 +1,4 @@ -### BEGIN GPL LICENSE BLOCK ##### -# -# 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. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later import bpy from bpy.types import Operator, Menu -- cgit v1.2.3