Skip to content

Commit 243b8a0

Browse files
committed
doc: have correct Pytition version
1 parent af4e3dd commit 243b8a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#
1313
import os
1414
import sys
15+
import re
1516
sys.path.insert(0, os.path.abspath('../pytition'))
1617
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext")))
1718

@@ -22,7 +23,8 @@
2223
author = 'Yann Sionneau'
2324

2425
# The full version, including alpha/beta/rc tags
25-
release = '2.0'
26+
release = re.sub('^v', '', os.popen('git describe --tags').read().strip())
27+
version = release
2628

2729

2830
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)