From 4ca66f58abeb39a77d5ba45a56db4c276a42a0eb Mon Sep 17 00:00:00 2001 From: phaesler Date: Thu, 13 May 2021 09:15:17 +1000 Subject: [PATCH] Add license headers. --- cfg_parser.py | 5 +++++ datacube_ows/__init__.py | 5 +++++ datacube_ows/band_utils.py | 5 +++++ datacube_ows/cfg_parser.py | 5 +++++ datacube_ows/config_toolkit.py | 5 +++++ datacube_ows/config_utils.py | 5 +++++ datacube_ows/cube_pool.py | 5 +++++ datacube_ows/data.py | 5 +++++ datacube_ows/gunicorn_config.py | 5 +++++ datacube_ows/legend_generator.py | 5 +++++ datacube_ows/legend_utils.py | 5 +++++ datacube_ows/mv_index.py | 5 +++++ datacube_ows/ogc.py | 5 +++++ datacube_ows/ogc_exceptions.py | 5 +++++ datacube_ows/ogc_utils.py | 5 +++++ datacube_ows/ows_cfg_example.py | 6 ++++++ datacube_ows/ows_configuration.py | 6 ++++++ datacube_ows/product_ranges.py | 6 ++++++ datacube_ows/protocol_versions.py | 5 +++++ datacube_ows/query_profiler.py | 5 +++++ datacube_ows/startup_utils.py | 5 +++++ datacube_ows/styles/__init__.py | 5 +++++ datacube_ows/styles/api/__init__.py | 5 +++++ datacube_ows/styles/api/base.py | 5 +++++ datacube_ows/styles/base.py | 5 +++++ datacube_ows/styles/colormap.py | 5 +++++ datacube_ows/styles/component.py | 5 +++++ datacube_ows/styles/expr.py | 5 +++++ datacube_ows/styles/expression.py | 5 +++++ datacube_ows/styles/hybrid.py | 5 +++++ datacube_ows/styles/ramp.py | 5 +++++ datacube_ows/tile_matrix_sets.py | 5 +++++ datacube_ows/update_ranges.py | 5 +++++ datacube_ows/utils.py | 5 +++++ datacube_ows/wcs1.py | 5 +++++ datacube_ows/wcs1_utils.py | 5 +++++ datacube_ows/wcs2.py | 5 +++++ datacube_ows/wcs2_utils.py | 5 +++++ datacube_ows/wcs_scaler.py | 5 +++++ datacube_ows/wcs_utils.py | 5 +++++ datacube_ows/wms.py | 5 +++++ datacube_ows/wms_utils.py | 5 +++++ datacube_ows/wmts.py | 5 +++++ datacube_ows/wsgi.py | 6 ++++++ integration_tests/__init__.py | 5 +++++ integration_tests/cfg/__init__.py | 5 +++++ integration_tests/cfg/ows_test_cfg.py | 6 ++++++ integration_tests/cfg/ows_test_cfg_bad.py | 6 ++++++ integration_tests/conftest.py | 5 +++++ integration_tests/test_cfg_parser.py | 5 +++++ integration_tests/test_layers.py | 5 +++++ integration_tests/test_mv_index.py | 5 +++++ integration_tests/test_routes.py | 5 +++++ integration_tests/test_update_ranges.py | 5 +++++ integration_tests/test_wcs_server.py | 5 +++++ integration_tests/test_wms_server.py | 5 +++++ integration_tests/test_wmts_server.py | 5 +++++ integration_tests/utils.py | 5 +++++ license-headers.md | 25 +++++++++++++++++++++++ license-template.txt | 5 +++++ requirements.txt | 1 + setup.py | 5 +++++ tests/__init__.py | 5 +++++ tests/cfg/__init__.py | 5 +++++ tests/cfg/minimal_cfg.py | 5 +++++ tests/cfg/mixed_nested.py | 5 +++++ tests/cfg/nested.py | 5 +++++ tests/cfg/simple.py | 5 +++++ tests/conftest.py | 5 +++++ tests/test_band_utils.py | 5 +++++ tests/test_cfg_bandidx.py | 5 +++++ tests/test_cfg_cache_ctrl.py | 5 +++++ tests/test_cfg_global.py | 5 +++++ tests/test_cfg_inclusion.py | 5 +++++ tests/test_cfg_layer.py | 5 +++++ tests/test_cfg_metadata_types.py | 5 +++++ tests/test_cfg_tile_matrix_set.py | 5 +++++ tests/test_cfg_wcs.py | 5 +++++ tests/test_config_toolkit.py | 5 +++++ tests/test_data.py | 5 +++++ tests/test_legend_generator.py | 5 +++++ tests/test_mpl_cmaps.py | 5 +++++ tests/test_msgfile_parser.py | 5 +++++ tests/test_multidate_handler.py | 5 +++++ tests/test_mv_selopts.py | 5 +++++ tests/test_no_db_routes.py | 5 +++++ tests/test_ogc_utils.py | 5 +++++ tests/test_ows_configuration.py | 5 +++++ tests/test_pyproj.py | 5 +++++ tests/test_qprof.py | 5 +++++ tests/test_startup.py | 5 +++++ tests/test_style_api.py | 5 +++++ tests/test_styles.py | 5 +++++ tests/test_time_res_method.py | 5 +++++ tests/test_wcs2_utils.py | 5 +++++ tests/test_wcs_scaler.py | 5 +++++ tests/test_wms_utils.py | 5 +++++ tests/utils.py | 5 +++++ update_ranges.py | 5 +++++ 99 files changed, 517 insertions(+) create mode 100644 license-headers.md create mode 100644 license-template.txt diff --git a/cfg_parser.py b/cfg_parser.py index 241a2451e..124eaaaee 100644 --- a/cfg_parser.py +++ b/cfg_parser.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.cfg_parser import main if __name__ == '__main__': diff --git a/datacube_ows/__init__.py b/datacube_ows/__init__.py index 5a5cac2f9..1a7272b94 100644 --- a/datacube_ows/__init__.py +++ b/datacube_ows/__init__.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 try: from ._version import version as __version__ except ImportError: diff --git a/datacube_ows/band_utils.py b/datacube_ows/band_utils.py index 71a701bf1..b4aedac5f 100644 --- a/datacube_ows/band_utils.py +++ b/datacube_ows/band_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import division import numpy diff --git a/datacube_ows/cfg_parser.py b/datacube_ows/cfg_parser.py index f5aaed226..261dd3c1f 100755 --- a/datacube_ows/cfg_parser.py +++ b/datacube_ows/cfg_parser.py @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import json import sys diff --git a/datacube_ows/config_toolkit.py b/datacube_ows/config_toolkit.py index f54de345a..2130dc08f 100644 --- a/datacube_ows/config_toolkit.py +++ b/datacube_ows/config_toolkit.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from copy import deepcopy diff --git a/datacube_ows/config_utils.py b/datacube_ows/config_utils.py index 816270fd3..df644c255 100644 --- a/datacube_ows/config_utils.py +++ b/datacube_ows/config_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import json import os from importlib import import_module diff --git a/datacube_ows/cube_pool.py b/datacube_ows/cube_pool.py index dcf2141bf..b905dc8ad 100644 --- a/datacube_ows/cube_pool.py +++ b/datacube_ows/cube_pool.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import logging diff --git a/datacube_ows/data.py b/datacube_ows/data.py index 57de18174..91a012f9f 100644 --- a/datacube_ows/data.py +++ b/datacube_ows/data.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import import json diff --git a/datacube_ows/gunicorn_config.py b/datacube_ows/gunicorn_config.py index 8ae6c3c5f..fa5d33913 100644 --- a/datacube_ows/gunicorn_config.py +++ b/datacube_ows/gunicorn_config.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 """Gunicorn config for Prometheus internal metrics """ import os diff --git a/datacube_ows/legend_generator.py b/datacube_ows/legend_generator.py index ca2d1b4a7..6ed3d5f58 100644 --- a/datacube_ows/legend_generator.py +++ b/datacube_ows/legend_generator.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import import io diff --git a/datacube_ows/legend_utils.py b/datacube_ows/legend_utils.py index e7a611b7c..091864fd2 100644 --- a/datacube_ows/legend_utils.py +++ b/datacube_ows/legend_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import io import requests diff --git a/datacube_ows/mv_index.py b/datacube_ows/mv_index.py index 51cd3fdf9..8ee36fd50 100644 --- a/datacube_ows/mv_index.py +++ b/datacube_ows/mv_index.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import json from enum import Enum diff --git a/datacube_ows/ogc.py b/datacube_ows/ogc.py index 829281f81..2b37c7ab4 100644 --- a/datacube_ows/ogc.py +++ b/datacube_ows/ogc.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import sys import traceback from time import monotonic diff --git a/datacube_ows/ogc_exceptions.py b/datacube_ows/ogc_exceptions.py index 62819bb0e..dea46f840 100644 --- a/datacube_ows/ogc_exceptions.py +++ b/datacube_ows/ogc_exceptions.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import traceback as tb diff --git a/datacube_ows/ogc_utils.py b/datacube_ows/ogc_utils.py index 5293be35d..9b75afadc 100644 --- a/datacube_ows/ogc_utils.py +++ b/datacube_ows/ogc_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import datetime diff --git a/datacube_ows/ows_cfg_example.py b/datacube_ows/ows_cfg_example.py index e1e8ee793..6132390c7 100644 --- a/datacube_ows/ows_cfg_example.py +++ b/datacube_ows/ows_cfg_example.py @@ -1,4 +1,10 @@ # pylint: skip-file +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + # Example configuration file for datacube_ows. # diff --git a/datacube_ows/ows_configuration.py b/datacube_ows/ows_configuration.py index 0d732f164..59f143197 100644 --- a/datacube_ows/ows_configuration.py +++ b/datacube_ows/ows_configuration.py @@ -1,3 +1,9 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + # # Note this is NOT the configuration file! # diff --git a/datacube_ows/product_ranges.py b/datacube_ows/product_ranges.py index 7a77e024a..c9a49cf25 100644 --- a/datacube_ows/product_ranges.py +++ b/datacube_ows/product_ranges.py @@ -1,3 +1,9 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + #pylint: skip-file from __future__ import absolute_import, division, print_function diff --git a/datacube_ows/protocol_versions.py b/datacube_ows/protocol_versions.py index 12f259f69..353b9b158 100644 --- a/datacube_ows/protocol_versions.py +++ b/datacube_ows/protocol_versions.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.ogc_exceptions import (WCS1Exception, WCS2Exception, WMSException, WMTSException) from datacube_ows.ows_configuration import get_config diff --git a/datacube_ows/query_profiler.py b/datacube_ows/query_profiler.py index 6bf83518b..2190d3c0c 100644 --- a/datacube_ows/query_profiler.py +++ b/datacube_ows/query_profiler.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from time import time diff --git a/datacube_ows/startup_utils.py b/datacube_ows/startup_utils.py index 3047f052c..3ecb49c3a 100644 --- a/datacube_ows/startup_utils.py +++ b/datacube_ows/startup_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import logging diff --git a/datacube_ows/styles/__init__.py b/datacube_ows/styles/__init__.py index 1d7065766..36db0f293 100644 --- a/datacube_ows/styles/__init__.py +++ b/datacube_ows/styles/__init__.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.styles.base import StyleDefBase # noqa: F401 from datacube_ows.styles.colormap import ColorMapStyleDef # noqa: F401 from datacube_ows.styles.component import ComponentStyleDef # noqa: F401 diff --git a/datacube_ows/styles/api/__init__.py b/datacube_ows/styles/api/__init__.py index cf03db82e..3fb8f0055 100644 --- a/datacube_ows/styles/api/__init__.py +++ b/datacube_ows/styles/api/__init__.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.styles.api.base import ( # noqa: F401 isort:skip StandaloneStyle, apply_ows_style, apply_ows_style_cfg, diff --git a/datacube_ows/styles/api/base.py b/datacube_ows/styles/api/base.py index 554960cb6..21d23d8a0 100644 --- a/datacube_ows/styles/api/base.py +++ b/datacube_ows/styles/api/base.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.startup_utils import initialise_ignorable_warnings from datacube_ows.styles.base import StandaloneProductProxy, StyleDefBase diff --git a/datacube_ows/styles/base.py b/datacube_ows/styles/base.py index c0882c83a..6e5653687 100644 --- a/datacube_ows/styles/base.py +++ b/datacube_ows/styles/base.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import io import logging diff --git a/datacube_ows/styles/colormap.py b/datacube_ows/styles/colormap.py index 3ba65d026..648b948e1 100644 --- a/datacube_ows/styles/colormap.py +++ b/datacube_ows/styles/colormap.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import logging from datetime import datetime diff --git a/datacube_ows/styles/component.py b/datacube_ows/styles/component.py index d6d08bb86..b212fd8dd 100644 --- a/datacube_ows/styles/component.py +++ b/datacube_ows/styles/component.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import numpy as np from xarray import DataArray, Dataset diff --git a/datacube_ows/styles/expr.py b/datacube_ows/styles/expr.py index e4d03e36d..d47c5b907 100644 --- a/datacube_ows/styles/expr.py +++ b/datacube_ows/styles/expr.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import lark diff --git a/datacube_ows/styles/expression.py b/datacube_ows/styles/expression.py index 7f008a31d..5fcf4dfac 100644 --- a/datacube_ows/styles/expression.py +++ b/datacube_ows/styles/expression.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import lark from datacube_ows.ogc_utils import ConfigException diff --git a/datacube_ows/styles/hybrid.py b/datacube_ows/styles/hybrid.py index dae35f610..fe9939919 100644 --- a/datacube_ows/styles/hybrid.py +++ b/datacube_ows/styles/hybrid.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from xarray import Dataset from datacube_ows.styles.base import StyleDefBase diff --git a/datacube_ows/styles/ramp.py b/datacube_ows/styles/ramp.py index 67a653ad8..601383ccd 100644 --- a/datacube_ows/styles/ramp.py +++ b/datacube_ows/styles/ramp.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import logging from collections import defaultdict from decimal import ROUND_HALF_UP, Decimal diff --git a/datacube_ows/tile_matrix_sets.py b/datacube_ows/tile_matrix_sets.py index 0d935c8d2..e5e66ff53 100644 --- a/datacube_ows/tile_matrix_sets.py +++ b/datacube_ows/tile_matrix_sets.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.config_utils import OWSConfigEntry from datacube_ows.ogc_utils import ConfigException diff --git a/datacube_ows/update_ranges.py b/datacube_ows/update_ranges.py index fa24294c1..9069dba1d 100755 --- a/datacube_ows/update_ranges.py +++ b/datacube_ows/update_ranges.py @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os import re diff --git a/datacube_ows/utils.py b/datacube_ows/utils.py index fb0760a3c..2e40b24b7 100644 --- a/datacube_ows/utils.py +++ b/datacube_ows/utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import logging diff --git a/datacube_ows/wcs1.py b/datacube_ows/wcs1.py index dda26092e..05547c994 100644 --- a/datacube_ows/wcs1.py +++ b/datacube_ows/wcs1.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function from flask import render_template diff --git a/datacube_ows/wcs1_utils.py b/datacube_ows/wcs1_utils.py index 8137b4cb3..e7cce1eb5 100644 --- a/datacube_ows/wcs1_utils.py +++ b/datacube_ows/wcs1_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import numpy diff --git a/datacube_ows/wcs2.py b/datacube_ows/wcs2.py index 9e67b677f..0371cecfe 100644 --- a/datacube_ows/wcs2.py +++ b/datacube_ows/wcs2.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function from flask import request diff --git a/datacube_ows/wcs2_utils.py b/datacube_ows/wcs2_utils.py index cd1f48d23..48ff911a6 100644 --- a/datacube_ows/wcs2_utils.py +++ b/datacube_ows/wcs2_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import collections diff --git a/datacube_ows/wcs_scaler.py b/datacube_ows/wcs_scaler.py index 12af0ccaa..50c931ba4 100644 --- a/datacube_ows/wcs_scaler.py +++ b/datacube_ows/wcs_scaler.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from affine import Affine from datacube.utils import geometry diff --git a/datacube_ows/wcs_utils.py b/datacube_ows/wcs_utils.py index 6760a0ab1..3950ebec9 100644 --- a/datacube_ows/wcs_utils.py +++ b/datacube_ows/wcs_utils.py @@ -1 +1,6 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.wcs1_utils import get_netcdf, get_tiff # noqa: F401 diff --git a/datacube_ows/wms.py b/datacube_ows/wms.py index fee3ae046..646921aeb 100644 --- a/datacube_ows/wms.py +++ b/datacube_ows/wms.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function from flask import render_template diff --git a/datacube_ows/wms_utils.py b/datacube_ows/wms_utils.py index fa7e04cde..dabe1736c 100644 --- a/datacube_ows/wms_utils.py +++ b/datacube_ows/wms_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function from datacube_ows.styles import StyleDef diff --git a/datacube_ows/wmts.py b/datacube_ows/wmts.py index 3ca13c981..e0bf08917 100644 --- a/datacube_ows/wmts.py +++ b/datacube_ows/wmts.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import, division, print_function import logging diff --git a/datacube_ows/wsgi.py b/datacube_ows/wsgi.py index e8818ac8b..8bc5d66b5 100644 --- a/datacube_ows/wsgi.py +++ b/datacube_ows/wsgi.py @@ -1,3 +1,9 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + #pylint: skip-file import os import sys diff --git a/integration_tests/__init__.py b/integration_tests/__init__.py index e69de29bb..644dbe42f 100644 --- a/integration_tests/__init__.py +++ b/integration_tests/__init__.py @@ -0,0 +1,5 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 diff --git a/integration_tests/cfg/__init__.py b/integration_tests/cfg/__init__.py index e69de29bb..644dbe42f 100644 --- a/integration_tests/cfg/__init__.py +++ b/integration_tests/cfg/__init__.py @@ -0,0 +1,5 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 diff --git a/integration_tests/cfg/ows_test_cfg.py b/integration_tests/cfg/ows_test_cfg.py index 454bd062b..85f36bb5e 100644 --- a/integration_tests/cfg/ows_test_cfg.py +++ b/integration_tests/cfg/ows_test_cfg.py @@ -1,4 +1,10 @@ # pylint: skip-file +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + # THIS IS A TESTING FILE # Please refer to datacube_ows/ows_cfg_example.py for EXAMPLE CONFIG diff --git a/integration_tests/cfg/ows_test_cfg_bad.py b/integration_tests/cfg/ows_test_cfg_bad.py index 74568fd97..ba67cba0e 100644 --- a/integration_tests/cfg/ows_test_cfg_bad.py +++ b/integration_tests/cfg/ows_test_cfg_bad.py @@ -1,4 +1,10 @@ # pylint: skip-file +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + # THIS IS A TESTING FILE FOR TESTING ERROR HANDLING. # Do not use it as an example, it is deliberately invalid. diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index e5be5d6b2..d9366e9e8 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os pytest_plugins = ["helpers_namespace"] diff --git a/integration_tests/test_cfg_parser.py b/integration_tests/test_cfg_parser.py index dd027eb85..28768e1ec 100644 --- a/integration_tests/test_cfg_parser.py +++ b/integration_tests/test_cfg_parser.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os import pytest diff --git a/integration_tests/test_layers.py b/integration_tests/test_layers.py index 9e6bbc52e..6a85f7e77 100644 --- a/integration_tests/test_layers.py +++ b/integration_tests/test_layers.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os from datacube_ows.cube_pool import cube diff --git a/integration_tests/test_mv_index.py b/integration_tests/test_mv_index.py index e602ce4ad..840d01bc1 100644 --- a/integration_tests/test_mv_index.py +++ b/integration_tests/test_mv_index.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import pytest from datacube.utils.geometry import box diff --git a/integration_tests/test_routes.py b/integration_tests/test_routes.py index 27b3dba30..61f02e57d 100644 --- a/integration_tests/test_routes.py +++ b/integration_tests/test_routes.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 """Run with DB to simulate actual function """ diff --git a/integration_tests/test_update_ranges.py b/integration_tests/test_update_ranges.py index 0f864c998..1bedcd08f 100644 --- a/integration_tests/test_update_ranges.py +++ b/integration_tests/test_update_ranges.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 """Test update ranges on DB using Click testing https://click.palletsprojects.com/en/7.x/testing/ """ diff --git a/integration_tests/test_wcs_server.py b/integration_tests/test_wcs_server.py index 8a17ff788..f9017eb94 100644 --- a/integration_tests/test_wcs_server.py +++ b/integration_tests/test_wcs_server.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from urllib import request import pytest diff --git a/integration_tests/test_wms_server.py b/integration_tests/test_wms_server.py index ed42ff646..196ec82f7 100644 --- a/integration_tests/test_wms_server.py +++ b/integration_tests/test_wms_server.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from urllib import request import pytest diff --git a/integration_tests/test_wmts_server.py b/integration_tests/test_wmts_server.py index 790af39d4..aec8ced2d 100644 --- a/integration_tests/test_wmts_server.py +++ b/integration_tests/test_wmts_server.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from urllib import request import pytest diff --git a/integration_tests/utils.py b/integration_tests/utils.py index 032a2b3bc..39b4bb8b2 100644 --- a/integration_tests/utils.py +++ b/integration_tests/utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import enum from datacube.utils.geometry import BoundingBox, Geometry diff --git a/license-headers.md b/license-headers.md new file mode 100644 index 000000000..f609edb8c --- /dev/null +++ b/license-headers.md @@ -0,0 +1,25 @@ +# Applying or updating license headers + +To add or update license headers in this or other Open Data Cube +projects, you can do the following: + +Download the tool from [https://github.com/johann-petrak/licenseheaders](https://github.com/johann-petrak/licenseheaders) and make it executable. + +```bash +wget https://raw.githubusercontent.com/johann-petrak/licenseheaders/master/licenseheaders.py +chmod +x licenseheaders.py +``` + +Change the sections on `python` files, to remove the `headerStartLine` and +`headerEndLine`, like: + +```python + "headerStartLine": "", + "headerEndLine": "", +``` + +Run the tool: + +```bash +python3 ./licenseheaders.py --tmpl license-template.txt --years 2017-2020 --ext py +``` diff --git a/license-template.txt b/license-template.txt new file mode 100644 index 000000000..bf8b1f592 --- /dev/null +++ b/license-template.txt @@ -0,0 +1,5 @@ +This file is part of datacube-ows, part of the Open Data Cube project. +See https://opendatacube.org for more information. + +Copyright (c) ${years} OWS Contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/requirements.txt b/requirements.txt index df1fc7a78..422a3b30c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,3 +35,4 @@ pytest-helpers-namespace prometheus-flask-exporter setuptools_scm deepdiff +regex diff --git a/setup.py b/setup.py index 8edeca593..9d463560e 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from setuptools import find_packages, setup diff --git a/tests/__init__.py b/tests/__init__.py index 40a96afc6..24d6a7461 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,6 @@ # -*- coding: utf-8 -*- +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 diff --git a/tests/cfg/__init__.py b/tests/cfg/__init__.py index 40a96afc6..24d6a7461 100644 --- a/tests/cfg/__init__.py +++ b/tests/cfg/__init__.py @@ -1 +1,6 @@ # -*- coding: utf-8 -*- +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 diff --git a/tests/cfg/minimal_cfg.py b/tests/cfg/minimal_cfg.py index 383ac4d33..b7b1630a2 100644 --- a/tests/cfg/minimal_cfg.py +++ b/tests/cfg/minimal_cfg.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 ows_cfg = { "global": { "title": "Minimal test config", diff --git a/tests/cfg/mixed_nested.py b/tests/cfg/mixed_nested.py index 3155e5628..9f238b31f 100644 --- a/tests/cfg/mixed_nested.py +++ b/tests/cfg/mixed_nested.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 mixed_1 = { "include": "tests/cfg/simple.json", "type": "json" diff --git a/tests/cfg/nested.py b/tests/cfg/nested.py index d9d372869..fb312b20b 100644 --- a/tests/cfg/nested.py +++ b/tests/cfg/nested.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 nested = { diff --git a/tests/cfg/simple.py b/tests/cfg/simple.py index 98d8cfcd7..0e53a3ebd 100644 --- a/tests/cfg/simple.py +++ b/tests/cfg/simple.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 simple = { diff --git a/tests/conftest.py b/tests/conftest.py index 2db9d3105..b931570e6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import datetime from unittest.mock import MagicMock diff --git a/tests/test_band_utils.py b/tests/test_band_utils.py index 0893e7d66..92b65da08 100644 --- a/tests/test_band_utils.py +++ b/tests/test_band_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 """Test band math utilities """ import numpy as np diff --git a/tests/test_cfg_bandidx.py b/tests/test_cfg_bandidx.py index 0d9620f08..1f5645b6f 100644 --- a/tests/test_cfg_bandidx.py +++ b/tests/test_cfg_bandidx.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import pytest diff --git a/tests/test_cfg_cache_ctrl.py b/tests/test_cfg_cache_ctrl.py index 085b40e5e..915b8ff55 100644 --- a/tests/test_cfg_cache_ctrl.py +++ b/tests/test_cfg_cache_ctrl.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import pytest diff --git a/tests/test_cfg_global.py b/tests/test_cfg_global.py index 9ff24c725..188396dc3 100644 --- a/tests/test_cfg_global.py +++ b/tests/test_cfg_global.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import pytest from datacube_ows.ogc_utils import ConfigException diff --git a/tests/test_cfg_inclusion.py b/tests/test_cfg_inclusion.py index f8e2147ab..86172ea61 100644 --- a/tests/test_cfg_inclusion.py +++ b/tests/test_cfg_inclusion.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os import sys diff --git a/tests/test_cfg_layer.py b/tests/test_cfg_layer.py index df6732ee9..20b1f1cb4 100644 --- a/tests/test_cfg_layer.py +++ b/tests/test_cfg_layer.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock, patch import pytest diff --git a/tests/test_cfg_metadata_types.py b/tests/test_cfg_metadata_types.py index 5699f408f..777255361 100644 --- a/tests/test_cfg_metadata_types.py +++ b/tests/test_cfg_metadata_types.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import pytest diff --git a/tests/test_cfg_tile_matrix_set.py b/tests/test_cfg_tile_matrix_set.py index a7c2324c4..3736ebc25 100644 --- a/tests/test_cfg_tile_matrix_set.py +++ b/tests/test_cfg_tile_matrix_set.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import pytest diff --git a/tests/test_cfg_wcs.py b/tests/test_cfg_wcs.py index 727bbdc09..22cbbff41 100644 --- a/tests/test_cfg_wcs.py +++ b/tests/test_cfg_wcs.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import math from unittest.mock import MagicMock, patch diff --git a/tests/test_config_toolkit.py b/tests/test_config_toolkit.py index 4631bb727..7abae635e 100644 --- a/tests/test_config_toolkit.py +++ b/tests/test_config_toolkit.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.config_toolkit import deepinherit diff --git a/tests/test_data.py b/tests/test_data.py index 5721885a8..759512539 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import datetime import numpy as np diff --git a/tests/test_legend_generator.py b/tests/test_legend_generator.py index 32a5bcadc..43c855b37 100644 --- a/tests/test_legend_generator.py +++ b/tests/test_legend_generator.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from decimal import Decimal import pytest diff --git a/tests/test_mpl_cmaps.py b/tests/test_mpl_cmaps.py index f96731d8e..9bd96a4cf 100644 --- a/tests/test_mpl_cmaps.py +++ b/tests/test_mpl_cmaps.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 """ Test creation of colour maps from matplotlib """ diff --git a/tests/test_msgfile_parser.py b/tests/test_msgfile_parser.py index b45cdf1af..2fbff649d 100644 --- a/tests/test_msgfile_parser.py +++ b/tests/test_msgfile_parser.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os import pytest diff --git a/tests/test_multidate_handler.py b/tests/test_multidate_handler.py index 79d64666f..f3503faf3 100644 --- a/tests/test_multidate_handler.py +++ b/tests/test_multidate_handler.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import numpy as np import pandas as pd import pytest diff --git a/tests/test_mv_selopts.py b/tests/test_mv_selopts.py index ce273dc8d..5bc89e7e8 100644 --- a/tests/test_mv_selopts.py +++ b/tests/test_mv_selopts.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.mv_index import MVSelectOpts diff --git a/tests/test_no_db_routes.py b/tests/test_no_db_routes.py index f5725fb56..294cd7088 100644 --- a/tests/test_no_db_routes.py +++ b/tests/test_no_db_routes.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 """Run with no DB to simulate connection failure """ import os diff --git a/tests/test_ogc_utils.py b/tests/test_ogc_utils.py index 2eeeb4a2e..8dca6c723 100644 --- a/tests/test_ogc_utils.py +++ b/tests/test_ogc_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import datetime import pytest diff --git a/tests/test_ows_configuration.py b/tests/test_ows_configuration.py index db6ec277f..269b2b585 100644 --- a/tests/test_ows_configuration.py +++ b/tests/test_ows_configuration.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import datacube_ows.config_utils diff --git a/tests/test_pyproj.py b/tests/test_pyproj.py index 7f7e544cb..2879dcd45 100644 --- a/tests/test_pyproj.py +++ b/tests/test_pyproj.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from pyproj import CRS SUPPORTED_CRS = [ diff --git a/tests/test_qprof.py b/tests/test_qprof.py index 62f3fa053..7dce1e0e3 100644 --- a/tests/test_qprof.py +++ b/tests/test_qprof.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.query_profiler import QueryProfiler diff --git a/tests/test_startup.py b/tests/test_startup.py index 20d54d281..d00551aad 100644 --- a/tests/test_startup.py +++ b/tests/test_startup.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import os from unittest.mock import patch diff --git a/tests/test_style_api.py b/tests/test_style_api.py index 7a50b1efb..0f4c338fe 100644 --- a/tests/test_style_api.py +++ b/tests/test_style_api.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import pytest from datacube_ows.styles.api import (StandaloneStyle, apply_ows_style, diff --git a/tests/test_styles.py b/tests/test_styles.py index d0e93bc86..efdacb24b 100644 --- a/tests/test_styles.py +++ b/tests/test_styles.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import datetime from unittest.mock import MagicMock, patch diff --git a/tests/test_time_res_method.py b/tests/test_time_res_method.py index 1af2441c2..5eb02163e 100644 --- a/tests/test_time_res_method.py +++ b/tests/test_time_res_method.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datetime import datetime import pytest diff --git a/tests/test_wcs2_utils.py b/tests/test_wcs2_utils.py index 033dea6b8..6e67ea545 100644 --- a/tests/test_wcs2_utils.py +++ b/tests/test_wcs2_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import pytest diff --git a/tests/test_wcs_scaler.py b/tests/test_wcs_scaler.py index b3dfd6826..0da2e0b48 100644 --- a/tests/test_wcs_scaler.py +++ b/tests/test_wcs_scaler.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import datetime import pytest diff --git a/tests/test_wms_utils.py b/tests/test_wms_utils.py index 61863c933..afea7d8ad 100644 --- a/tests/test_wms_utils.py +++ b/tests/test_wms_utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from unittest.mock import MagicMock import pytest diff --git a/tests/utils.py b/tests/utils.py index 706809e67..f5b1aefd4 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 import datetime import numpy as np diff --git a/update_ranges.py b/update_ranges.py index c65e27aef..0c6e728e6 100644 --- a/update_ranges.py +++ b/update_ranges.py @@ -1,3 +1,8 @@ +# This file is part of datacube-ows, part of the Open Data Cube project. +# See https://opendatacube.org for more information. +# +# Copyright (c) 2017-2021 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 from datacube_ows.update_ranges import main if __name__ == '__main__':