From 3df36fae19adb3774f9fc93830d0f65153a234cf Mon Sep 17 00:00:00 2001 From: Sophia Castellarin Date: Mon, 18 Nov 2024 03:09:14 -0800 Subject: [PATCH] DEV - Set traitlets application version (#981) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tania Allard --- conda-store-server/conda_store_server/_internal/server/app.py | 1 + conda-store-server/conda_store_server/_internal/worker/app.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/conda-store-server/conda_store_server/_internal/server/app.py b/conda-store-server/conda_store_server/_internal/server/app.py index e380f654a..dda9affc0 100644 --- a/conda-store-server/conda_store_server/_internal/server/app.py +++ b/conda-store-server/conda_store_server/_internal/server/app.py @@ -46,6 +46,7 @@ class _Color(str, Enum): class CondaStoreServer(Application): + version = __version__ aliases = { "config": "CondaStoreServer.config_file", } diff --git a/conda-store-server/conda_store_server/_internal/worker/app.py b/conda-store-server/conda_store_server/_internal/worker/app.py index 93e04db5c..286947848 100644 --- a/conda-store-server/conda_store_server/_internal/worker/app.py +++ b/conda-store-server/conda_store_server/_internal/worker/app.py @@ -9,10 +9,12 @@ from traitlets import Integer, List, Unicode, validate from traitlets.config import Application, catch_config_error +from conda_store_server import __version__ from conda_store_server.app import CondaStore class CondaStoreWorker(Application): + version = __version__ aliases = { "config": "CondaStoreWorker.config_file", }