Skip to content

Commit

Permalink
fix: Guard against CI CAREamics version in editable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeschamps committed Feb 10, 2025
1 parent 1214bea commit 6a00b5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/careamics/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ def get_clean_version() -> str:
Clean CAREamics version.
"""
parts = __version__.split(".") # Remove any local version identifier

# for local installs that do not detect the latest versions via tags
# (typically our CI)
if "dev" in parts[-1]:
parts[-1] = "*"

return ".".join(parts[:3])

0 comments on commit 6a00b5c

Please sign in to comment.