From 36e67ef51ef597766477b560b4dbeccc9d40ce59 Mon Sep 17 00:00:00 2001 From: Lourens Veen Date: Thu, 2 Jul 2026 17:58:31 +0200 Subject: [PATCH] Use dummy version 9999.9.9 if in git repo without tags --- support/shared/version_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/shared/version_helper.py b/support/shared/version_helper.py index ecd8f77e05..eb2e35f0ca 100644 --- a/support/shared/version_helper.py +++ b/support/shared/version_helper.py @@ -11,7 +11,7 @@ have this plug-in for versioningit that checks that if we don't have a git repository. """ from versioningit.core import VCSDescription -from versioningit.errors import NotSdistError, NotVCSError +from versioningit.errors import NoTagError, NotSdistError, NotVCSError from versioningit.git import describe_git from pathlib import Path @@ -42,3 +42,5 @@ def get_amuse_version(project_dir, params): version = load_version(proj_dir.parents[3] / 'VERSION') return VCSDescription(version, 'exact', None, {}) + except NoTagError: + return VCSDescription('9999.9.9', 'exact', None, {})