File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import sys , os
15
15
16
+ # Read the properties file to harvest version info.
17
+ p = {}
18
+ with open ("../../../springpython.properties" ) as f :
19
+ lines = f .readlines ()
20
+ for line in lines :
21
+ if "=" in line and not line .startswith ("#" ):
22
+ (key , value ) = line .split ("=" )
23
+ p [key ] = value [:- 1 ]
24
+
25
+ print p
26
+
16
27
# If extensions (or modules to document with autodoc) are in another directory,
17
28
# add these directories to sys.path here. If the directory is relative to the
18
29
# documentation root, use os.path.abspath to make it absolute, like shown here.
41
52
42
53
# General information about the project.
43
54
project = u'Spring Python'
44
- copyright = u'2010 , Greg Turnquist, Dariusz Suchojad'
55
+ copyright = u'2006-2011 , Greg Turnquist, Dariusz Suchojad'
45
56
46
57
# The version info for the project you're documenting, acts as replacement for
47
58
# |version| and |release|, also used in various other places throughout the
48
59
# built documents.
49
60
#
50
61
# The short X.Y version.
51
- version = '1.2'
62
+ version = "." .join (p ["version" ].split ("." )[0 :2 ])
63
+
52
64
# The full version, including alpha/beta/rc tags.
53
- release = '1.2.0.RC1'
65
+ if "build.stamp" in p :
66
+ release = p ["version" ] + "." + p ["build.stamp" ]
67
+ else :
68
+ release = p ["version" ] + "." + p ["release.type" ].upper ()
54
69
55
70
# The language for content autogenerated by Sphinx. Refer to documentation
56
71
# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments