Skip to content

Commit

Permalink
feat: better versions in docs built by ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hartym committed Feb 1, 2024
1 parent 8f79fdb commit 365467d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
with open(os.path.join(ROOT_DIR, "version.txt")) as f:
__version__ = f.read().strip()

# override with current development version/revision if available
if os.path.exists(os.path.join(ROOT_DIR, ".git")):
# override with current development version/revision if available (disabled in CI, for docs)
if not os.environ.get("CI", False) and os.path.exists(os.path.join(ROOT_DIR, ".git")):
__revision__ = check_output(["git", "rev-parse", "HEAD"], cwd=ROOT_DIR).decode("utf-8").strip()
try:
__version__ = (
Expand Down

0 comments on commit 365467d

Please sign in to comment.