Skip to content

Commit

Permalink
Merge pull request #132 from arighi/fix-git-version
Browse files Browse the repository at this point in the history
version: run git describe from the path of the python file
  • Loading branch information
Andrea Righi authored Jul 14, 2024
2 parents 22fb61a + 0ded79a commit b83d9ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtme_ng/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

"""virtme-ng version"""

import os
from subprocess import check_output, DEVNULL, CalledProcessError

PKG_VERSION = "1.25"
Expand All @@ -13,7 +14,7 @@ def get_version_string():
# Get the version from git describe
version = (
check_output(
"git describe --always --long --dirty",
"cd %s && git describe --always --long --dirty" % os.path.dirname(__file__),
shell=True,
stderr=DEVNULL,
)
Expand Down

0 comments on commit b83d9ed

Please sign in to comment.