File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1414
1515import datetime
1616
17- # Try to import the version from our package, but if that fails
18- # because of the way the RTD build works fall back to at least using
19- # the git tag information.
20- try :
21- from virtualenvwrapper .version import version
22- except ImportError :
23- import subprocess
24- p = subprocess .run (['git' , 'describe' ], stdout = subprocess .PIPE )
25- version = p .stdout .decode ('utf-8' ).strip ()
17+ import virtualenvwrapper .version
2618
2719# If extensions (or modules to document with autodoc) are in another directory,
2820# add these directories to sys.path here. If the directory is relative to the
6052# built documents.
6153#
6254# The short X.Y version.
63- # version = "SEE IMPORTS ABOVE"
55+ version = virtualenvwrapper . version . version
6456# The full version, including alpha/beta/rc tags.
6557release = version
6658
You can’t perform that action at this time.
0 commit comments