setup: link to latest docs if VCS information is not available.
This commit is contained in:
parent
e3207b74f4
commit
765c15c709
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
|
@ -21,7 +21,9 @@ def doc_version():
|
|||
return ""
|
||||
|
||||
git = parse_git(".")
|
||||
if git.exact:
|
||||
if not git:
|
||||
return ""
|
||||
elif git.exact:
|
||||
return git.format_with("{tag}")
|
||||
else:
|
||||
return "latest"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue