Fix dirty-flag removal in docs/conf.py

This commit is contained in:
Kodi Arfer 2017-06-20 14:26:39 -07:00
parent 3a7618806e
commit 49fd49e7ee

View File

@ -2,13 +2,12 @@
#
# This file is execfile()d with the current directory set to its containing dir.
import os, sys, time, cgi
import re, os, sys, time, cgi
sys.path.append(os.path.abspath(".."))
from get_version import __version__ as hy_version
if hy_version.endswith(".dirty"):
# Read the Docs might dirty its checkout, so ignore this.
hy_version = hy_version[:-len(".dirty")]
# Read the Docs might dirty its checkout, so strip the dirty flag.
hy_version = re.sub('[+.]dirty\Z', '', hy_version)
templates_path = ['_templates']
source_suffix = '.rst'