File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111# All configuration values have a default; values that are commented out
1212# serve to show the default.
1313
14- import sys , os
14+ import sys
15+ import os
16+ import re
1517
1618# from unittest.mock import MagicMock # python3
1719from mock import Mock as MagicMock # python2
@@ -90,10 +92,12 @@ def __getattr__(cls, name):
9092# |version| and |release|, also used in various other places throughout the
9193# built documents.
9294#
95+ import control
9396# The short X.Y version.
94- version = '0.6'
97+ version = re . sub ( r'(\d+\.\d+)\.(.*)' , r'\1' , control . __version__ )
9598# The full version, including alpha/beta/rc tags.
96- release = '0.6e'
99+ release = control .__version__
100+ print ("version %s, release %s" % (version , release ))
97101
98102# The language for content autogenerated by Sphinx. Refer to documentation
99103# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments