Skip to content

Commit

Permalink
chore(setup): print version before returning it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyl-M committed Aug 18, 2024
1 parent b500819 commit e35032a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def get_version_from_git():
raise EnvironmentError("Git is not installed or not found in PATH.")

try:
version = subprocess.check_output([git_path, "describe", "--tags"]).strip().decode("utf-8")
version = subprocess.check_output([git_path, 'describe', '--tags']).strip().decode('utf-8')
print(f"Version: {version}")
return version

except subprocess.CalledProcessError as error:
Expand Down

0 comments on commit e35032a

Please sign in to comment.