We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a351bab commit dc9ee95Copy full SHA for dc9ee95
1 file changed
docs/conf.py
@@ -64,7 +64,10 @@
64
# built documents.
65
#
66
# The full version, including alpha/beta/rc tags.
67
-from tdl import __version__ as release
+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)
71
# The short X.Y version.
72
import re
73
version = re.match(r'([0-9]+\.[0-9]+).*?', release).group()
0 commit comments