diff --git a/docs/changelog.md b/docs/changelog.md index d9d9334f..95fd0a67 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -13,7 +13,8 @@ Versioning currently follows `X.Y.Z` where ### Added - Entities can be compared and sorted by ID now. -- Caching for list_not_existing_storage_directories. +- Show Python version in version info string. +- Caching for bfabric_list_not_existing_storage_directories.py. - (experimental) add initial code for a resource based application dispatch - (experimental) new app_runner cli that integrates all commands into a single interface diff --git a/src/bfabric/bfabric.py b/src/bfabric/bfabric.py index 4b7f68a2..72693604 100644 --- a/src/bfabric/bfabric.py +++ b/src/bfabric/bfabric.py @@ -15,6 +15,7 @@ import base64 import importlib.metadata +import sys from contextlib import AbstractContextManager from contextlib import contextmanager from datetime import datetime @@ -257,8 +258,9 @@ def _get_version_message(self) -> tuple[str, str]: engine_name = self._engine.__class__.__name__ base_url = self.config.base_url user_name = f"U={self._auth.login if self._auth else None}" + python_version = f"PY={sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}" return ( - f"bfabricPy v{package_version} ({engine_name}, {base_url}, {user_name})", + f"bfabricPy v{package_version} ({engine_name}, {base_url}, {user_name}, {python_version})", f"Copyright (C) 2014-{year} Functional Genomics Center Zurich", )