File tree 2 files changed +19
-4
lines changed
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
# This is the version of this source code.
2
2
3
- verstr = "1.4.131"
3
+ manual_verstr = "1.4"
4
+
5
+
6
+
7
+ auto_build_num = "131"
8
+
9
+
10
+
11
+ verstr = manual_verstr + "." + auto_build_num
4
12
try :
5
13
from pyutil .version_class import Version as pyutil_Version
6
14
__version__ = pyutil_Version (verstr )
Original file line number Diff line number Diff line change 10
10
except EnvironmentError :
11
11
pass # Okay, there is no version file.
12
12
else :
13
- VSRE = r"^verstr = ['\"]([^'\"]*)['\"]"
14
- mo = re .search (VSRE , verstrline , re .M )
13
+ MVSRE = r"^manual_verstr *= * ['\"]([^'\"]*)['\"]"
14
+ mo = re .search (MVSRE , verstrline , re .M )
15
15
if mo :
16
- verstr = mo .group (1 )
16
+ mverstr = mo .group (1 )
17
17
else :
18
18
print "unable to find version in %s" % (VERSIONFILE ,)
19
19
raise RuntimeError ("if %s.py exists, it must be well-formed" % (VERSIONFILE ,))
20
+ AVSRE = r"^auto_build_num *= *['\"]([^'\"]*)['\"]"
21
+ mo = re .search (AVSRE , verstrline , re .M )
22
+ if mo :
23
+ averstr = mo .group (1 )
24
+ else :
25
+ averstr = ''
26
+ verstr = '.' .join ([mverstr , averstr ])
20
27
21
28
setup (name = PKG ,
22
29
version = verstr ,
You can’t perform that action at this time.
0 commit comments