Skip to content

Commit

Permalink
Take only last line of hatch version output
Browse files Browse the repository at this point in the history
Relevant change in the Hatch CLI: pypa/hatch#212

Changelog: !minor
  • Loading branch information
GeeTransit committed May 26, 2022
1 parent 768a6fc commit a198c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def read(filename: str) -> str:
capture_output=True,
text=True,
check=True,
).stdout.strip()
).stdout.splitlines()[-1]
except subprocess.CalledProcessError:
pass
release = version
Expand Down

0 comments on commit a198c5d

Please sign in to comment.