From 156f011b66337bbb4718ba6d5d4f567effba6bac Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Fri, 30 Aug 2024 14:16:53 +0200 Subject: [PATCH] Issue #117 create `openeo_aggregator.config` subpackage to allow including example configs in src tree --- src/openeo_aggregator/config/__init__.py | 12 ++++++++++++ src/openeo_aggregator/{ => config}/config.py | 0 src/openeo_aggregator/testing.py | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/openeo_aggregator/config/__init__.py rename src/openeo_aggregator/{ => config}/config.py (100%) diff --git a/src/openeo_aggregator/config/__init__.py b/src/openeo_aggregator/config/__init__.py new file mode 100644 index 0000000..fc3e5f5 --- /dev/null +++ b/src/openeo_aggregator/config/__init__.py @@ -0,0 +1,12 @@ +from openeo_aggregator.config.config import ( + CONNECTION_TIMEOUT_DEFAULT, + CONNECTION_TIMEOUT_INIT, + CONNECTION_TIMEOUT_JOB_LOGS, + CONNECTION_TIMEOUT_JOB_START, + CONNECTION_TIMEOUT_RESULT, + STREAM_CHUNK_SIZE_DEFAULT, + AggregatorBackendConfig, + ConfigException, + ProcessAllowed, + get_backend_config, +) diff --git a/src/openeo_aggregator/config.py b/src/openeo_aggregator/config/config.py similarity index 100% rename from src/openeo_aggregator/config.py rename to src/openeo_aggregator/config/config.py diff --git a/src/openeo_aggregator/testing.py b/src/openeo_aggregator/testing.py index 2d780c7..6cf60d8 100644 --- a/src/openeo_aggregator/testing.py +++ b/src/openeo_aggregator/testing.py @@ -321,6 +321,6 @@ def config_overrides(**kwargs): ... def test_stuff(): """ return openeo_driver.testing.config_overrides( - config_getter=openeo_aggregator.config._config_getter, + config_getter=openeo_aggregator.config.config._config_getter, **kwargs, )