From 98e24c140f30dcf2233a95a34195206dcdc6096b Mon Sep 17 00:00:00 2001 From: Ryan May Date: Fri, 20 Nov 2015 16:42:57 -0700 Subject: [PATCH] Add simple license header to all of our source. (Fixes #91) --- LICENSE | 2 +- metpy/__init__.py | 4 ++++ metpy/calc/__init__.py | 4 ++++ metpy/calc/basic.py | 4 ++++ metpy/calc/kinematics.py | 4 ++++ metpy/calc/tests/test_basic.py | 4 ++++ metpy/calc/tests/test_kinematics.py | 4 ++++ metpy/calc/tests/test_thermo.py | 4 ++++ metpy/calc/tests/test_turbulence.py | 4 ++++ metpy/calc/thermo.py | 4 ++++ metpy/calc/turbulence.py | 4 ++++ metpy/cbook.py | 5 +++++ metpy/constants.py | 4 ++++ metpy/io/__init__.py | 4 ++++ metpy/io/nexrad.py | 4 ++++ metpy/io/nexrad_msgs/__init__.py | 3 +++ metpy/io/nexrad_msgs/msg18.py | 4 ++++ metpy/io/nexrad_msgs/msg3.py | 4 ++++ metpy/io/nexrad_msgs/parse_spec.py | 3 +++ metpy/io/tests/test_nexrad.py | 4 ++++ metpy/io/tools.py | 5 +++++ metpy/package_tools.py | 4 ++++ metpy/plots/__init__.py | 4 ++++ metpy/plots/ctables.py | 4 ++++ metpy/plots/skewt.py | 4 ++++ metpy/plots/tests/test_ctables.py | 4 ++++ metpy/plots/tests/test_skewt.py | 4 ++++ metpy/testing.py | 4 ++++ metpy/units.py | 4 ++++ setup.py | 4 ++++ 30 files changed, 117 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index a80e80f81ba..b83c52a491b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2008-2014, MetPy Developers. +Copyright (c) 2008-2015, MetPy Developers. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/metpy/__init__.py b/metpy/__init__.py index e676dc44aff..c09f3ab128e 100644 --- a/metpy/__init__.py +++ b/metpy/__init__.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # What do we want to pull into the top-level namespace? from ._version import get_versions diff --git a/metpy/calc/__init__.py b/metpy/calc/__init__.py index f670b9aa453..63c8f8fb1ab 100644 --- a/metpy/calc/__init__.py +++ b/metpy/calc/__init__.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from .basic import * # noqa from .kinematics import * # noqa from .thermo import * # noqa diff --git a/metpy/calc/basic.py b/metpy/calc/basic.py index 2f25c91eb7d..91d308f6abf 100644 --- a/metpy/calc/basic.py +++ b/metpy/calc/basic.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import division import numpy as np from numpy.ma import masked_array diff --git a/metpy/calc/kinematics.py b/metpy/calc/kinematics.py index af9bf7245cb..75ffcb70803 100644 --- a/metpy/calc/kinematics.py +++ b/metpy/calc/kinematics.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import division import numpy as np from ..package_tools import Exporter diff --git a/metpy/calc/tests/test_basic.py b/metpy/calc/tests/test_basic.py index dfc4dca4838..62268c367a2 100644 --- a/metpy/calc/tests/test_basic.py +++ b/metpy/calc/tests/test_basic.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np from numpy.testing import assert_array_equal diff --git a/metpy/calc/tests/test_kinematics.py b/metpy/calc/tests/test_kinematics.py index 9bf2b95a145..0212955f693 100644 --- a/metpy/calc/tests/test_kinematics.py +++ b/metpy/calc/tests/test_kinematics.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from metpy.testing import assert_array_equal import numpy as np from metpy.calc.kinematics import * # noqa diff --git a/metpy/calc/tests/test_thermo.py b/metpy/calc/tests/test_thermo.py index 18d2baa637f..dbc1603c8df 100644 --- a/metpy/calc/tests/test_thermo.py +++ b/metpy/calc/tests/test_thermo.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np from metpy.calc.thermo import * # noqa from metpy.units import units diff --git a/metpy/calc/tests/test_turbulence.py b/metpy/calc/tests/test_turbulence.py index d32965e9373..900c3fc5654 100644 --- a/metpy/calc/tests/test_turbulence.py +++ b/metpy/calc/tests/test_turbulence.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np from numpy.testing import assert_array_equal, assert_almost_equal from metpy.calc.turbulence import * # noqa diff --git a/metpy/calc/thermo.py b/metpy/calc/thermo.py index edb859e3b92..ca0e9b7123e 100644 --- a/metpy/calc/thermo.py +++ b/metpy/calc/thermo.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import division import numpy as np import scipy.integrate as si diff --git a/metpy/calc/turbulence.py b/metpy/calc/turbulence.py index 2fa7c63ccfd..cc4f580c5eb 100644 --- a/metpy/calc/turbulence.py +++ b/metpy/calc/turbulence.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np from ..package_tools import Exporter diff --git a/metpy/cbook.py b/metpy/cbook.py index e83ac61ac49..589db5da2d1 100644 --- a/metpy/cbook.py +++ b/metpy/cbook.py @@ -1,4 +1,9 @@ '''Collection of generally useful utility code from the cookbook''' + +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import os import os.path from matplotlib.cbook import iterable, is_string_like, Bunch diff --git a/metpy/constants.py b/metpy/constants.py index ed3245c1e13..4ec3181bfc5 100644 --- a/metpy/constants.py +++ b/metpy/constants.py @@ -67,6 +67,10 @@ ======================== ======= ======== ===================================== ''' +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from .units import units from .package_tools import Exporter diff --git a/metpy/io/__init__.py b/metpy/io/__init__.py index 41832439f62..b4f8ffffc94 100644 --- a/metpy/io/__init__.py +++ b/metpy/io/__init__.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from .nexrad import * # noqa __all__ = [] __all__.extend(nexrad.__all__) # pylint: disable=undefined-variable diff --git a/metpy/io/nexrad.py b/metpy/io/nexrad.py index 700313dde25..de652118897 100644 --- a/metpy/io/nexrad.py +++ b/metpy/io/nexrad.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import print_function import bz2 import datetime diff --git a/metpy/io/nexrad_msgs/__init__.py b/metpy/io/nexrad_msgs/__init__.py index e69de29bb2d..cf0151f875d 100644 --- a/metpy/io/nexrad_msgs/__init__.py +++ b/metpy/io/nexrad_msgs/__init__.py @@ -0,0 +1,3 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause diff --git a/metpy/io/nexrad_msgs/msg18.py b/metpy/io/nexrad_msgs/msg18.py index ec1cae7cc3d..aedf896e8a5 100644 --- a/metpy/io/nexrad_msgs/msg18.py +++ b/metpy/io/nexrad_msgs/msg18.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # flake8: noqa # Generated file -- do not modify descriptions = {"ADAP_FILE_NAME": "NAME OF ADAPTATION DATA FILE", diff --git a/metpy/io/nexrad_msgs/msg3.py b/metpy/io/nexrad_msgs/msg3.py index 9a0a9a40e98..b9187bb9419 100644 --- a/metpy/io/nexrad_msgs/msg3.py +++ b/metpy/io/nexrad_msgs/msg3.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # flake8: noqa # Generated file -- do not modify descriptions = {"T1_Output_Frames": "The number of octets received on interface, including frame octets (octet)", diff --git a/metpy/io/nexrad_msgs/parse_spec.py b/metpy/io/nexrad_msgs/parse_spec.py index dab30e05e91..20d05af10b3 100644 --- a/metpy/io/nexrad_msgs/parse_spec.py +++ b/metpy/io/nexrad_msgs/parse_spec.py @@ -150,6 +150,9 @@ def field_fmt(item): def write_file(fname, info): with open(fname, 'w') as outfile: # File header + outfile.write('# Copyright (c) 2008-2015 MetPy Developers.\n') + outfile.write('# Distributed under the terms of the BSD 3-Clause License.\n') + outfile.write('# SPDX-License-Identifier: BSD-3-Clause\n\n') outfile.write('# flake8: noqa\n') outfile.write('# Generated file -- do not modify\n') diff --git a/metpy/io/tests/test_nexrad.py b/metpy/io/tests/test_nexrad.py index 5e359b81bd7..e795ac079fb 100644 --- a/metpy/io/tests/test_nexrad.py +++ b/metpy/io/tests/test_nexrad.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import glob import logging import os.path diff --git a/metpy/io/tools.py b/metpy/io/tools.py index 5e37d319413..05bef4c2fb1 100644 --- a/metpy/io/tools.py +++ b/metpy/io/tools.py @@ -1,4 +1,9 @@ 'A collection of general purpose tools for reading files' + +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import print_function import logging from collections import namedtuple diff --git a/metpy/package_tools.py b/metpy/package_tools.py index f91db8f9926..3d70d844697 100644 --- a/metpy/package_tools.py +++ b/metpy/package_tools.py @@ -1,5 +1,9 @@ 'Collection of tools for managing the package' +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + # Used to specify functions that should be exported--i.e. added to __all__ # Inspired by David Beazley and taken from python-ideas: # https://mail.python.org/pipermail/python-ideas/2014-May/027824.html diff --git a/metpy/plots/__init__.py b/metpy/plots/__init__.py index c747adb6159..021516fff68 100644 --- a/metpy/plots/__init__.py +++ b/metpy/plots/__init__.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from .skewt import * # noqa __all__ = [] __all__.extend(skewt.__all__) # pylint: disable=undefined-variable diff --git a/metpy/plots/ctables.py b/metpy/plots/ctables.py index 167325c7baf..b254b73999f 100644 --- a/metpy/plots/ctables.py +++ b/metpy/plots/ctables.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import ast import glob import os.path diff --git a/metpy/plots/skewt.py b/metpy/plots/skewt.py index e9145844df6..1225d073d09 100644 --- a/metpy/plots/skewt.py +++ b/metpy/plots/skewt.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import numpy as np import matplotlib.transforms as transforms import matplotlib.axis as maxis diff --git a/metpy/plots/tests/test_ctables.py b/metpy/plots/tests/test_ctables.py index adea0c0f1be..5ed4e66b8de 100644 --- a/metpy/plots/tests/test_ctables.py +++ b/metpy/plots/tests/test_ctables.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import os.path import tempfile try: diff --git a/metpy/plots/tests/test_skewt.py b/metpy/plots/tests/test_skewt.py index d6d9e9fe75e..67b48603f53 100644 --- a/metpy/plots/tests/test_skewt.py +++ b/metpy/plots/tests/test_skewt.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import tempfile import numpy as np from matplotlib.figure import Figure diff --git a/metpy/testing.py b/metpy/testing.py index daa71e03a27..3b635ef1ab9 100644 --- a/metpy/testing.py +++ b/metpy/testing.py @@ -3,6 +3,10 @@ Currently, this consists of unit-aware test functions ''' +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + import numpy.testing from pint import DimensionalityError from .units import units diff --git a/metpy/units.py b/metpy/units.py index 20b98588cdb..71ddab4009e 100644 --- a/metpy/units.py +++ b/metpy/units.py @@ -10,6 +10,10 @@ import this registry and use it to grab units. ''' +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import division import pint import numpy as np diff --git a/setup.py b/setup.py index ad761d9a80b..a6771c9cfb1 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,7 @@ +# Copyright (c) 2008-2015 MetPy Developers. +# Distributed under the terms of the BSD 3-Clause License. +# SPDX-License-Identifier: BSD-3-Clause + from __future__ import print_function from setuptools import setup, find_packages, Command import versioneer