Skip to content

Commit

Permalink
Print hash with --version when installed as development (#4954)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
stxue1 and github-actions[bot] authored Jun 1, 2024
1 parent 128db16 commit 935cd2a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/toil/utils/toilMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ def printHelp(modules: Dict[str, types.ModuleType]) -> None:

def printVersion() -> None:
try:
print(metadata_version('toil'))
detected_version = metadata_version('toil')
if "a" in detected_version:
# This probably means Toil is installed as development
print(version)
else:
print(detected_version)
except:
print(f'Version gathered from toil.version: {version}')

0 comments on commit 935cd2a

Please sign in to comment.