Skip to content

Commit dc9ee95

Browse files
committed
Fix doc generation.
1 parent a351bab commit dc9ee95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@
6464
# built documents.
6565
#
6666
# The full version, including alpha/beta/rc tags.
67-
from tdl import __version__ as release
67+
from subprocess import check_output
68+
release = check_output(['git', 'describe', '--abbrev=0'],
69+
universal_newlines=True).strip()[1:]
70+
print('release version: %r' % release)
6871
# The short X.Y version.
6972
import re
7073
version = re.match(r'([0-9]+\.[0-9]+).*?', release).group()

0 commit comments

Comments
 (0)