From 2c85a5b80f005d4fc9233e2628850f8e81cf1816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirko=20M=C3=A4licke?= Date: Thu, 4 Jul 2024 08:28:00 +0200 Subject: [PATCH] add version info to the processing log --- src/run.py | 4 ++++ src/version.py | 1 + 2 files changed, 5 insertions(+) create mode 100644 src/version.py diff --git a/src/run.py b/src/run.py index cd38bf2..b1833f3 100644 --- a/src/run.py +++ b/src/run.py @@ -1,5 +1,6 @@ import os import sys +import platform from datetime import datetime as dt import time from pathlib import Path @@ -17,6 +18,7 @@ import aggregator import reporter from clip import reference_area_to_file +from version import __version__ # parse parameters kwargs = get_parameter() @@ -60,6 +62,8 @@ MSG = f"""\ This is the V-FOR-WaTer data loader report +The loader version is: {__version__} (Python: {platform.python_version()}) +Running on: {platform.platform()} The following information has been submitted to the tool: START DATE: {params.start_date} diff --git a/src/version.py b/src/version.py new file mode 100644 index 0000000..a9b029e --- /dev/null +++ b/src/version.py @@ -0,0 +1 @@ +__version__ = "0.10.0" \ No newline at end of file