From 7dfb21a86baffd3ed16a774cb86da0daa2eec140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?oliver=20k=C3=B6nig?= Date: Fri, 3 Jan 2025 20:44:21 +0100 Subject: [PATCH] fix: Generate version number string (#467) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: oliver könig --- nemo_curator/package_info.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nemo_curator/package_info.py b/nemo_curator/package_info.py index f9ca1dbd2..65c7ae069 100644 --- a/nemo_curator/package_info.py +++ b/nemo_curator/package_info.py @@ -23,7 +23,13 @@ VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE, DEV) __shortversion__ = ".".join(map(str, VERSION[:3])) -__version__ = __shortversion__ + VERSION[3] + "." + ".".join(VERSION[4:]) +__version__ = __shortversion__ + +if VERSION[3] != "": + __version__ = __version__ + VERSION[3] + +if VERSION[4] != "": + __version__ = __version__ + "." + ".".join(VERSION[4:]) __package_name__ = "nemo_curator" __contact_names__ = "NVIDIA"