From d0a4333999bcbd8efa76f756dc6a3f44ca13cf91 Mon Sep 17 00:00:00 2001 From: Paul Haesler Date: Wed, 24 Apr 2024 20:04:51 +1000 Subject: [PATCH] Updated licence headers. --- cfg_parser.py | 3 ++- datacube_ows/__init__.py | 3 ++- datacube_ows/band_utils.py | 3 ++- datacube_ows/cfg_parser_impl.py | 3 ++- datacube_ows/config_toolkit.py | 3 ++- datacube_ows/config_utils.py | 3 ++- datacube_ows/cube_pool.py | 3 ++- datacube_ows/data.py | 3 ++- datacube_ows/feature_info.py | 3 ++- datacube_ows/gunicorn_config.py | 3 ++- datacube_ows/http_utils.py | 1 + datacube_ows/legend_generator.py | 3 ++- datacube_ows/legend_utils.py | 3 ++- datacube_ows/loading.py | 6 ++++++ datacube_ows/mv_index.py | 3 ++- datacube_ows/ogc.py | 3 ++- datacube_ows/ogc_exceptions.py | 3 ++- datacube_ows/ogc_utils.py | 3 ++- datacube_ows/ows_cfg_example.py | 3 ++- datacube_ows/ows_configuration.py | 3 ++- datacube_ows/product_ranges.py | 3 ++- datacube_ows/protocol_versions.py | 3 ++- datacube_ows/query_profiler.py | 3 ++- datacube_ows/resource_limits.py | 3 ++- datacube_ows/startup_utils.py | 3 ++- datacube_ows/styles/__init__.py | 3 ++- datacube_ows/styles/api/__init__.py | 3 ++- datacube_ows/styles/api/base.py | 3 ++- datacube_ows/styles/base.py | 3 ++- datacube_ows/styles/colormap.py | 3 ++- datacube_ows/styles/component.py | 3 ++- datacube_ows/styles/expression.py | 3 ++- datacube_ows/styles/hybrid.py | 3 ++- datacube_ows/styles/ramp.py | 3 ++- datacube_ows/tile_matrix_sets.py | 3 ++- datacube_ows/time_utils.py | 3 ++- datacube_ows/update_ranges_impl.py | 3 ++- datacube_ows/utils.py | 3 ++- datacube_ows/wcs1.py | 3 ++- datacube_ows/wcs1_utils.py | 3 ++- datacube_ows/wcs2.py | 3 ++- datacube_ows/wcs2_utils.py | 3 ++- datacube_ows/wcs_scaler.py | 3 ++- datacube_ows/wcs_utils.py | 3 ++- datacube_ows/wms.py | 3 ++- datacube_ows/wms_utils.py | 3 ++- datacube_ows/wmts.py | 3 ++- datacube_ows/wsgi.py | 3 ++- docs/conf.py | 3 ++- integration_tests/__init__.py | 3 ++- integration_tests/cfg/__init__.py | 3 ++- integration_tests/cfg/ows_test_cfg.py | 3 ++- integration_tests/cfg/ows_test_cfg_bad.py | 3 ++- integration_tests/cfg/ows_test_cfg_no_i18n.py | 3 ++- integration_tests/cfg/utils.py | 3 ++- integration_tests/conftest.py | 3 ++- integration_tests/test_cfg_parser.py | 3 ++- integration_tests/test_cube_pool.py | 3 ++- integration_tests/test_i18n.py | 3 ++- integration_tests/test_layers.py | 3 ++- integration_tests/test_mv_index.py | 3 ++- integration_tests/test_routes.py | 3 ++- integration_tests/test_update_ranges.py | 3 ++- integration_tests/test_version.py | 3 ++- integration_tests/test_wcs_server.py | 3 ++- integration_tests/test_wms_server.py | 3 ++- integration_tests/test_wmts_server.py | 3 ++- integration_tests/utils.py | 3 ++- setup.py | 3 ++- tests/__init__.py | 3 ++- tests/cfg/__init__.py | 3 ++- tests/cfg/broken_nested.py | 3 ++- tests/cfg/minimal_cfg.py | 3 ++- tests/cfg/mixed_nested.py | 3 ++- tests/cfg/nested.py | 3 ++- tests/cfg/simple.py | 3 ++- tests/conftest.py | 3 ++- tests/test_band_utils.py | 3 ++- tests/test_cfg_bandidx.py | 3 ++- tests/test_cfg_cache_ctrl.py | 3 ++- tests/test_cfg_global.py | 3 ++- tests/test_cfg_inclusion.py | 3 ++- tests/test_cfg_layer.py | 3 ++- tests/test_cfg_metadata_types.py | 3 ++- tests/test_cfg_tile_matrix_set.py | 3 ++- tests/test_cfg_wcs.py | 3 ++- tests/test_config_toolkit.py | 3 ++- tests/test_data.py | 3 ++- tests/test_legend_generator.py | 3 ++- tests/test_mpl_cmaps.py | 3 ++- tests/test_multidate_handler.py | 3 ++- tests/test_mv_selopts.py | 3 ++- tests/test_no_db_routes.py | 3 ++- tests/test_ogc_utils.py | 3 ++- tests/test_ows_configuration.py | 3 ++- tests/test_protocol_versions.py | 3 ++- tests/test_pyproj.py | 3 ++- tests/test_qprof.py | 3 ++- tests/test_resource_limits.py | 3 ++- tests/test_startup.py | 3 ++- tests/test_style_api.py | 3 ++- tests/test_styles.py | 3 ++- tests/test_time_res_method.py | 3 ++- tests/test_utils.py | 3 ++- tests/test_wcs2_utils.py | 3 ++- tests/test_wcs_scaler.py | 3 ++- tests/test_wms_utils.py | 3 ++- tests/utils.py | 3 ++- update_ranges.py | 3 ++- 109 files changed, 221 insertions(+), 107 deletions(-) diff --git a/cfg_parser.py b/cfg_parser.py index 3818ba7c3..5dbd99872 100644 --- a/cfg_parser.py +++ b/cfg_parser.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from datacube_ows.cfg_parser_impl import main from datacube_ows.startup_utils import initialise_debugging diff --git a/datacube_ows/__init__.py b/datacube_ows/__init__.py index 7c6ad5568..3e7649d48 100644 --- a/datacube_ows/__init__.py +++ b/datacube_ows/__init__.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 97d27af75..9470b17f3 100644 --- a/datacube_ows/band_utils.py +++ b/datacube_ows/band_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from __future__ import division import numpy diff --git a/datacube_ows/cfg_parser_impl.py b/datacube_ows/cfg_parser_impl.py index 353aca80c..f84313a08 100755 --- a/datacube_ows/cfg_parser_impl.py +++ b/datacube_ows/cfg_parser_impl.py @@ -2,9 +2,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import json import os import sys diff --git a/datacube_ows/config_toolkit.py b/datacube_ows/config_toolkit.py index f8a4e736d..ef6cf525b 100644 --- a/datacube_ows/config_toolkit.py +++ b/datacube_ows/config_toolkit.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from copy import deepcopy from typing import Any diff --git a/datacube_ows/config_utils.py b/datacube_ows/config_utils.py index b478da912..ecd6f156e 100644 --- a/datacube_ows/config_utils.py +++ b/datacube_ows/config_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import json import logging import os diff --git a/datacube_ows/cube_pool.py b/datacube_ows/cube_pool.py index 2739a68aa..40043ac25 100644 --- a/datacube_ows/cube_pool.py +++ b/datacube_ows/cube_pool.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging from contextlib import contextmanager from threading import Lock diff --git a/datacube_ows/data.py b/datacube_ows/data.py index 9f7c08d06..ab421708c 100644 --- a/datacube_ows/data.py +++ b/datacube_ows/data.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging from datetime import date, datetime, timedelta from typing import cast, Any diff --git a/datacube_ows/feature_info.py b/datacube_ows/feature_info.py index 26613fdcc..fb8de0468 100644 --- a/datacube_ows/feature_info.py +++ b/datacube_ows/feature_info.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging import re from datetime import datetime diff --git a/datacube_ows/gunicorn_config.py b/datacube_ows/gunicorn_config.py index 4ddb23235..36152c67f 100644 --- a/datacube_ows/gunicorn_config.py +++ b/datacube_ows/gunicorn_config.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + """Gunicorn config for Prometheus internal metrics """ import os diff --git a/datacube_ows/http_utils.py b/datacube_ows/http_utils.py index 421eac351..2a2f70d6f 100644 --- a/datacube_ows/http_utils.py +++ b/datacube_ows/http_utils.py @@ -3,6 +3,7 @@ # # Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import json from typing import Optional from urllib.parse import urlparse diff --git a/datacube_ows/legend_generator.py b/datacube_ows/legend_generator.py index 42f5445f0..8f772b5ba 100644 --- a/datacube_ows/legend_generator.py +++ b/datacube_ows/legend_generator.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import io import logging diff --git a/datacube_ows/legend_utils.py b/datacube_ows/legend_utils.py index 0d43abb63..58b20748c 100644 --- a/datacube_ows/legend_utils.py +++ b/datacube_ows/legend_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import io import logging from typing import Optional diff --git a/datacube_ows/loading.py b/datacube_ows/loading.py index 9503b7ea5..e566b636a 100644 --- a/datacube_ows/loading.py +++ b/datacube_ows/loading.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-2024 OWS Contributors +# SPDX-License-Identifier: Apache-2.0 + from collections import OrderedDict import datetime diff --git a/datacube_ows/mv_index.py b/datacube_ows/mv_index.py index bbaa903d4..3c9e62679 100644 --- a/datacube_ows/mv_index.py +++ b/datacube_ows/mv_index.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime import json from enum import Enum diff --git a/datacube_ows/ogc.py b/datacube_ows/ogc.py index f662a0f10..5eac95218 100644 --- a/datacube_ows/ogc.py +++ b/datacube_ows/ogc.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 ea5e15e8c..6e2be393a 100644 --- a/datacube_ows/ogc_exceptions.py +++ b/datacube_ows/ogc_exceptions.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import traceback as tb from flask import render_template diff --git a/datacube_ows/ogc_utils.py b/datacube_ows/ogc_utils.py index 2dc477d90..9a89c9e29 100644 --- a/datacube_ows/ogc_utils.py +++ b/datacube_ows/ogc_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging import datetime from io import BytesIO diff --git a/datacube_ows/ows_cfg_example.py b/datacube_ows/ows_cfg_example.py index 4cd14e80e..395927c5b 100644 --- a/datacube_ows/ows_cfg_example.py +++ b/datacube_ows/ows_cfg_example.py @@ -2,10 +2,11 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + # Example configuration file for datacube_ows. # # The file was originally the only documentation for the configuration file format. diff --git a/datacube_ows/ows_configuration.py b/datacube_ows/ows_configuration.py index 02d8b80f8..79fe62814 100644 --- a/datacube_ows/ows_configuration.py +++ b/datacube_ows/ows_configuration.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 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 25020b03d..bd4e1570c 100644 --- a/datacube_ows/product_ranges.py +++ b/datacube_ows/product_ranges.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + #pylint: skip-file import math diff --git a/datacube_ows/protocol_versions.py b/datacube_ows/protocol_versions.py index 62f1b6c0a..a53627681 100644 --- a/datacube_ows/protocol_versions.py +++ b/datacube_ows/protocol_versions.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import re from typing import Callable, Mapping, Sequence, Tuple diff --git a/datacube_ows/query_profiler.py b/datacube_ows/query_profiler.py index 6cdbde486..0d0fa3fb2 100644 --- a/datacube_ows/query_profiler.py +++ b/datacube_ows/query_profiler.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from time import time diff --git a/datacube_ows/resource_limits.py b/datacube_ows/resource_limits.py index 210bbfc2f..96f22f508 100644 --- a/datacube_ows/resource_limits.py +++ b/datacube_ows/resource_limits.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import math from typing import Any, Iterable, Mapping, cast diff --git a/datacube_ows/startup_utils.py b/datacube_ows/startup_utils.py index a0d9a5a41..893cd2e03 100644 --- a/datacube_ows/startup_utils.py +++ b/datacube_ows/startup_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging import os import warnings diff --git a/datacube_ows/styles/__init__.py b/datacube_ows/styles/__init__.py index 9d2ce7bc6..bc7589e15 100644 --- a/datacube_ows/styles/__init__.py +++ b/datacube_ows/styles/__init__.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 7267194e7..1b7c253ea 100644 --- a/datacube_ows/styles/api/__init__.py +++ b/datacube_ows/styles/api/__init__.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 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, generate_ows_legend_style, generate_ows_legend_style_cfg, diff --git a/datacube_ows/styles/api/base.py b/datacube_ows/styles/api/base.py index 12384313c..455505306 100644 --- a/datacube_ows/styles/api/base.py +++ b/datacube_ows/styles/api/base.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import xarray from datacube_ows.startup_utils import initialise_ignorable_warnings diff --git a/datacube_ows/styles/base.py b/datacube_ows/styles/base.py index 9d7073132..a5fa2ba37 100644 --- a/datacube_ows/styles/base.py +++ b/datacube_ows/styles/base.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import io import logging from typing import (Any, Iterable, Mapping, MutableMapping, Optional, Sized, Type, Union, cast) diff --git a/datacube_ows/styles/colormap.py b/datacube_ows/styles/colormap.py index 7700ecc3b..5fbcfacc1 100644 --- a/datacube_ows/styles/colormap.py +++ b/datacube_ows/styles/colormap.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import io import logging from datetime import datetime diff --git a/datacube_ows/styles/component.py b/datacube_ows/styles/component.py index 48774302d..7aa95c186 100644 --- a/datacube_ows/styles/component.py +++ b/datacube_ows/styles/component.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from typing import Any, Callable, Hashable, cast import numpy as np diff --git a/datacube_ows/styles/expression.py b/datacube_ows/styles/expression.py index 22acf77c7..3985637b0 100644 --- a/datacube_ows/styles/expression.py +++ b/datacube_ows/styles/expression.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from typing import Any, Type, cast from xarray import Dataset diff --git a/datacube_ows/styles/hybrid.py b/datacube_ows/styles/hybrid.py index d6dddac31..0f5f3ddb1 100644 --- a/datacube_ows/styles/hybrid.py +++ b/datacube_ows/styles/hybrid.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from typing import cast from xarray import DataArray, Dataset diff --git a/datacube_ows/styles/ramp.py b/datacube_ows/styles/ramp.py index e8c2966b9..7b15f513b 100644 --- a/datacube_ows/styles/ramp.py +++ b/datacube_ows/styles/ramp.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import io import logging from collections import defaultdict diff --git a/datacube_ows/tile_matrix_sets.py b/datacube_ows/tile_matrix_sets.py index 99870d098..ad9b3d2d7 100644 --- a/datacube_ows/tile_matrix_sets.py +++ b/datacube_ows/tile_matrix_sets.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from typing import cast, Type from datacube_ows.config_utils import OWSConfigEntry, ConfigException, CFG_DICT, RAW_CFG diff --git a/datacube_ows/time_utils.py b/datacube_ows/time_utils.py index 562a91944..08af46d35 100644 --- a/datacube_ows/time_utils.py +++ b/datacube_ows/time_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging import datetime from typing import Optional, Sequence diff --git a/datacube_ows/update_ranges_impl.py b/datacube_ows/update_ranges_impl.py index 652a9b8ab..fefb91ec7 100755 --- a/datacube_ows/update_ranges_impl.py +++ b/datacube_ows/update_ranges_impl.py @@ -2,9 +2,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import importlib.resources import re import sys diff --git a/datacube_ows/utils.py b/datacube_ows/utils.py index d6f28d66c..6f8b44b73 100644 --- a/datacube_ows/utils.py +++ b/datacube_ows/utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime import logging from functools import wraps diff --git a/datacube_ows/wcs1.py b/datacube_ows/wcs1.py index 2eaedc3b1..92c2bfe44 100644 --- a/datacube_ows/wcs1.py +++ b/datacube_ows/wcs1.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from flask import render_template from datacube_ows.ogc_exceptions import WCS1Exception diff --git a/datacube_ows/wcs1_utils.py b/datacube_ows/wcs1_utils.py index c17b562a1..2c19b9215 100644 --- a/datacube_ows/wcs1_utils.py +++ b/datacube_ows/wcs1_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import numpy import pytz import xarray diff --git a/datacube_ows/wcs2.py b/datacube_ows/wcs2.py index b28096e93..0a31d18b1 100644 --- a/datacube_ows/wcs2.py +++ b/datacube_ows/wcs2.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging from flask import request diff --git a/datacube_ows/wcs2_utils.py b/datacube_ows/wcs2_utils.py index 6f09f6e93..5ad659607 100644 --- a/datacube_ows/wcs2_utils.py +++ b/datacube_ows/wcs2_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import collections import logging diff --git a/datacube_ows/wcs_scaler.py b/datacube_ows/wcs_scaler.py index 3b77e1185..503ab75b8 100644 --- a/datacube_ows/wcs_scaler.py +++ b/datacube_ows/wcs_scaler.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from affine import Affine from odc.geo import geom as odc_geom diff --git a/datacube_ows/wcs_utils.py b/datacube_ows/wcs_utils.py index 3ada02eb7..9d70beb03 100644 --- a/datacube_ows/wcs_utils.py +++ b/datacube_ows/wcs_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from datacube_ows.ogc_exceptions import WCS1Exception, WCS2Exception diff --git a/datacube_ows/wms.py b/datacube_ows/wms.py index b05f305b0..5bcc94cac 100644 --- a/datacube_ows/wms.py +++ b/datacube_ows/wms.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from flask import render_template from datacube_ows.data import get_map diff --git a/datacube_ows/wms_utils.py b/datacube_ows/wms_utils.py index 9e73de0eb..3cb5bd634 100644 --- a/datacube_ows/wms_utils.py +++ b/datacube_ows/wms_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import math from datetime import datetime diff --git a/datacube_ows/wmts.py b/datacube_ows/wmts.py index a5f7419b4..479aaa4a7 100644 --- a/datacube_ows/wmts.py +++ b/datacube_ows/wmts.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import logging from flask import render_template diff --git a/datacube_ows/wsgi.py b/datacube_ows/wsgi.py index 6c7623918..a3034107e 100644 --- a/datacube_ows/wsgi.py +++ b/datacube_ows/wsgi.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + #pylint: skip-file import os import sys diff --git a/docs/conf.py b/docs/conf.py index 6b461f468..70a7107ae 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,9 +3,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import os import sys diff --git a/integration_tests/__init__.py b/integration_tests/__init__.py index bdebc4f4a..7f2605021 100644 --- a/integration_tests/__init__.py +++ b/integration_tests/__init__.py @@ -1,5 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + diff --git a/integration_tests/cfg/__init__.py b/integration_tests/cfg/__init__.py index bdebc4f4a..7f2605021 100644 --- a/integration_tests/cfg/__init__.py +++ b/integration_tests/cfg/__init__.py @@ -1,5 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 7d2f592cc..a1066f7bf 100644 --- a/integration_tests/cfg/ows_test_cfg.py +++ b/integration_tests/cfg/ows_test_cfg.py @@ -2,9 +2,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import os if os.environ.get("DATACUBE_OWS_CFG", "").startswith("integration_tests"): diff --git a/integration_tests/cfg/ows_test_cfg_bad.py b/integration_tests/cfg/ows_test_cfg_bad.py index 38088fe45..7b1255e2a 100644 --- a/integration_tests/cfg/ows_test_cfg_bad.py +++ b/integration_tests/cfg/ows_test_cfg_bad.py @@ -2,10 +2,11 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 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/cfg/ows_test_cfg_no_i18n.py b/integration_tests/cfg/ows_test_cfg_no_i18n.py index 597aff074..65e37e7d7 100644 --- a/integration_tests/cfg/ows_test_cfg_no_i18n.py +++ b/integration_tests/cfg/ows_test_cfg_no_i18n.py @@ -2,10 +2,11 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 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/utils.py b/integration_tests/cfg/utils.py index 8056a43bd..454fea466 100644 --- a/integration_tests/cfg/utils.py +++ b/integration_tests/cfg/utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + def trivial_identity(x): return x diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index 682b51ae0..a72a52e29 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 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 d98788459..1f7d3b5e1 100644 --- a/integration_tests/test_cfg_parser.py +++ b/integration_tests/test_cfg_parser.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import os import pytest diff --git a/integration_tests/test_cube_pool.py b/integration_tests/test_cube_pool.py index 054c2ec70..96252b4be 100644 --- a/integration_tests/test_cube_pool.py +++ b/integration_tests/test_cube_pool.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from datacube import Datacube from datacube_ows.cube_pool import get_cube diff --git a/integration_tests/test_i18n.py b/integration_tests/test_i18n.py index 35edb778a..e19e230a4 100644 --- a/integration_tests/test_i18n.py +++ b/integration_tests/test_i18n.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import requests diff --git a/integration_tests/test_layers.py b/integration_tests/test_layers.py index 1a1e5c2e4..fd55ddc65 100644 --- a/integration_tests/test_layers.py +++ b/integration_tests/test_layers.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 5d423c712..1ddad0823 100644 --- a/integration_tests/test_mv_index.py +++ b/integration_tests/test_mv_index.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import pytest from odc.geo.geom import box diff --git a/integration_tests/test_routes.py b/integration_tests/test_routes.py index 84fb75b29..5c89fb460 100644 --- a/integration_tests/test_routes.py +++ b/integration_tests/test_routes.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 35bdb9ac8..603b3024c 100644 --- a/integration_tests/test_update_ranges.py +++ b/integration_tests/test_update_ranges.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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_version.py b/integration_tests/test_version.py index dc63df857..d6e98a75b 100644 --- a/integration_tests/test_version.py +++ b/integration_tests/test_version.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 4d5d5c8c4..9e3000351 100644 --- a/integration_tests/test_wcs_server.py +++ b/integration_tests/test_wcs_server.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 a75e8a259..54bfa3b47 100644 --- a/integration_tests/test_wms_server.py +++ b/integration_tests/test_wms_server.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 5b17af940..84baf24d2 100644 --- a/integration_tests/test_wmts_server.py +++ b/integration_tests/test_wmts_server.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 391984686..47cf548fd 100644 --- a/integration_tests/utils.py +++ b/integration_tests/utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import enum from odc.geo.geom import BoundingBox, Geometry, point diff --git a/setup.py b/setup.py index ef5cb8cee..22827bb71 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from setuptools import find_packages, setup install_requirements = [ diff --git a/tests/__init__.py b/tests/__init__.py index f39503754..2c8b1f916 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,5 +2,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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + diff --git a/tests/cfg/__init__.py b/tests/cfg/__init__.py index f39503754..2c8b1f916 100644 --- a/tests/cfg/__init__.py +++ b/tests/cfg/__init__.py @@ -2,5 +2,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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + diff --git a/tests/cfg/broken_nested.py b/tests/cfg/broken_nested.py index 188d687e7..59bd3c332 100644 --- a/tests/cfg/broken_nested.py +++ b/tests/cfg/broken_nested.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + mixed_3 = { "test": 2634, "subtest": { diff --git a/tests/cfg/minimal_cfg.py b/tests/cfg/minimal_cfg.py index 8abe45790..3d4c6bfc7 100644 --- a/tests/cfg/minimal_cfg.py +++ b/tests/cfg/minimal_cfg.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 995ab2776..db33ab055 100644 --- a/tests/cfg/mixed_nested.py +++ b/tests/cfg/mixed_nested.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 3e874b1f7..e38e7d17f 100644 --- a/tests/cfg/nested.py +++ b/tests/cfg/nested.py @@ -1,10 +1,11 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + nested = { "include": "tests.cfg.simple.simple", "type": "python", diff --git a/tests/cfg/simple.py b/tests/cfg/simple.py index 91e234212..ba217b802 100644 --- a/tests/cfg/simple.py +++ b/tests/cfg/simple.py @@ -1,10 +1,11 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + simple = { "test": 123, } diff --git a/tests/conftest.py b/tests/conftest.py index fce5023f4..65bbafc8d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 4c5f60118..e267a954f 100644 --- a/tests/test_band_utils.py +++ b/tests/test_band_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 1611be831..17cfd8637 100644 --- a/tests/test_cfg_bandidx.py +++ b/tests/test_cfg_bandidx.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 95d0b1462..e030a4e7f 100644 --- a/tests/test_cfg_cache_ctrl.py +++ b/tests/test_cfg_cache_ctrl.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 ccf0c38b7..f6cd21b4f 100644 --- a/tests/test_cfg_global.py +++ b/tests/test_cfg_global.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import pytest from datacube_ows.config_utils import ConfigException diff --git a/tests/test_cfg_inclusion.py b/tests/test_cfg_inclusion.py index 422ff65a2..f87587cbb 100644 --- a/tests/test_cfg_inclusion.py +++ b/tests/test_cfg_inclusion.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 cfd8e58d7..8d4a981be 100644 --- a/tests/test_cfg_layer.py +++ b/tests/test_cfg_layer.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime import math from unittest.mock import MagicMock, patch diff --git a/tests/test_cfg_metadata_types.py b/tests/test_cfg_metadata_types.py index ecf46ca66..9a42c8962 100644 --- a/tests/test_cfg_metadata_types.py +++ b/tests/test_cfg_metadata_types.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 85b010010..93977e913 100644 --- a/tests/test_cfg_tile_matrix_set.py +++ b/tests/test_cfg_tile_matrix_set.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 fe7b2aad7..ce4eb5043 100644 --- a/tests/test_cfg_wcs.py +++ b/tests/test_cfg_wcs.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from unittest.mock import patch import pytest diff --git a/tests/test_config_toolkit.py b/tests/test_config_toolkit.py index 9c19955b8..3d1c7bd56 100644 --- a/tests/test_config_toolkit.py +++ b/tests/test_config_toolkit.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 855ec667d..3de13d56c 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime from unittest.mock import MagicMock diff --git a/tests/test_legend_generator.py b/tests/test_legend_generator.py index 1b48ae623..d08c519bb 100644 --- a/tests/test_legend_generator.py +++ b/tests/test_legend_generator.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from decimal import Decimal from unittest.mock import MagicMock diff --git a/tests/test_mpl_cmaps.py b/tests/test_mpl_cmaps.py index 80e6eecfa..a0756b3e7 100644 --- a/tests/test_mpl_cmaps.py +++ b/tests/test_mpl_cmaps.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + """ Test creation of colour maps from matplotlib """ diff --git a/tests/test_multidate_handler.py b/tests/test_multidate_handler.py index ae584371e..8d0821a56 100644 --- a/tests/test_multidate_handler.py +++ b/tests/test_multidate_handler.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 6192189d9..68b80fb56 100644 --- a/tests/test_mv_selopts.py +++ b/tests/test_mv_selopts.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 bf55d1560..5190b59c0 100644 --- a/tests/test_no_db_routes.py +++ b/tests/test_no_db_routes.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 0bce0bfca..ca4aa4c4c 100644 --- a/tests/test_ogc_utils.py +++ b/tests/test_ogc_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime from unittest.mock import MagicMock diff --git a/tests/test_ows_configuration.py b/tests/test_ows_configuration.py index 5ede2d99c..1e2267b1b 100644 --- a/tests/test_ows_configuration.py +++ b/tests/test_ows_configuration.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from unittest.mock import MagicMock import pytest diff --git a/tests/test_protocol_versions.py b/tests/test_protocol_versions.py index a3bbd711f..4906d45a1 100644 --- a/tests/test_protocol_versions.py +++ b/tests/test_protocol_versions.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import pytest import datacube_ows.protocol_versions diff --git a/tests/test_pyproj.py b/tests/test_pyproj.py index 98f1eaacb..3922565f4 100644 --- a/tests/test_pyproj.py +++ b/tests/test_pyproj.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 a26be503f..e1ed6d306 100644 --- a/tests/test_qprof.py +++ b/tests/test_qprof.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from datacube_ows.query_profiler import QueryProfiler diff --git a/tests/test_resource_limits.py b/tests/test_resource_limits.py index 8ff469051..68fc389ff 100644 --- a/tests/test_resource_limits.py +++ b/tests/test_resource_limits.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import pytest from odc.geo import CRS diff --git a/tests/test_startup.py b/tests/test_startup.py index 3fa7975ef..d0f6e8109 100644 --- a/tests/test_startup.py +++ b/tests/test_startup.py @@ -1,9 +1,10 @@ # This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # -# Copyright (c) 2017-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import os import sys from unittest.mock import MagicMock, patch diff --git a/tests/test_style_api.py b/tests/test_style_api.py index c950d453c..e837140df 100644 --- a/tests/test_style_api.py +++ b/tests/test_style_api.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from decimal import Decimal import pytest diff --git a/tests/test_styles.py b/tests/test_styles.py index 136772284..8af561268 100644 --- a/tests/test_styles.py +++ b/tests/test_styles.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 1bbf8cdef..cc04dd47e 100644 --- a/tests/test_time_res_method.py +++ b/tests/test_time_res_method.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from datetime import datetime import pytest diff --git a/tests/test_utils.py b/tests/test_utils.py index 5b3422761..3266bb5c2 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime from unittest.mock import MagicMock diff --git a/tests/test_wcs2_utils.py b/tests/test_wcs2_utils.py index a3029d8ad..77693371f 100644 --- a/tests/test_wcs2_utils.py +++ b/tests/test_wcs2_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 72b6d86eb..b4732ad4c 100644 --- a/tests/test_wcs_scaler.py +++ b/tests/test_wcs_scaler.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 cbb8f756a..8a8d15450 100644 --- a/tests/test_wms_utils.py +++ b/tests/test_wms_utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + import datetime from unittest.mock import MagicMock diff --git a/tests/utils.py b/tests/utils.py index a95ebffb7..70d7638c4 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 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 f994f52e1..502b7d123 100644 --- a/update_ranges.py +++ b/update_ranges.py @@ -1,8 +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-2023 OWS Contributors +# Copyright (c) 2017-2024 OWS Contributors # SPDX-License-Identifier: Apache-2.0 + from datacube_ows.update_ranges_impl import main if __name__ == '__main__':