Skip to content

Commit d896fb0

Browse files
committed
Revert "doc build take version from git when package not installed"
This reverts commit 8fc971c. We should not need this now that the rtd.org build is installing our package via pip.
1 parent 72acd99 commit d896fb0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/source/conf.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,7 @@
1414

1515
import 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
@@ -60,7 +52,7 @@
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.
6557
release = version
6658

0 commit comments

Comments
 (0)