From 0b7b1d4654c28209f64f54df77328ea8cccee04a Mon Sep 17 00:00:00 2001 From: Robbe Sneyders Date: Mon, 27 Nov 2023 18:52:49 +0100 Subject: [PATCH] Set default explorer version to current Fondant version --- src/fondant/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fondant/cli.py b/src/fondant/cli.py index c30f4e5a8..4422eba6b 100644 --- a/src/fondant/cli.py +++ b/src/fondant/cli.py @@ -23,6 +23,7 @@ import textwrap import typing as t from collections import defaultdict +from importlib.metadata import version from pathlib import Path from types import ModuleType @@ -130,7 +131,7 @@ def register_explore(parent_parser): "--tag", "-t", type=str, - default="latest", + default=version("fondant") if version("fondant") != "0.1.dev0" else "latest", help="Docker image tag to use.", ) parser.add_argument(