Fix dirty-flag removal in docs/conf.py
This commit is contained in:
parent
3a7618806e
commit
49fd49e7ee
@ -2,13 +2,12 @@
|
|||||||
#
|
#
|
||||||
# This file is execfile()d with the current directory set to its containing dir.
|
# 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(".."))
|
sys.path.append(os.path.abspath(".."))
|
||||||
|
|
||||||
from get_version import __version__ as hy_version
|
from get_version import __version__ as hy_version
|
||||||
if hy_version.endswith(".dirty"):
|
# Read the Docs might dirty its checkout, so strip the dirty flag.
|
||||||
# Read the Docs might dirty its checkout, so ignore this.
|
hy_version = re.sub('[+.]dirty\Z', '', hy_version)
|
||||||
hy_version = hy_version[:-len(".dirty")]
|
|
||||||
|
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
source_suffix = '.rst'
|
source_suffix = '.rst'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user