Skip to content

Commit

Permalink
docs: try to generate tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
glorpen committed Mar 6, 2020
1 parent c4b3e9c commit 3dff393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
project_dir = os.path.dirname(os.path.dirname(__file__))
sys.path.append(f"{project_dir}/src")

subprocess.call(["git", "fetch", "--tags"])
git_tag = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()
if git_tag:
version = git_tag[1:]
Expand Down

0 comments on commit 3dff393

Please sign in to comment.