refs #538 fix updating the ogagent version across the codebase
parent
f7fd5d5570
commit
b7788d9c1d
|
@ -65,7 +65,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="VersionLabel">
|
||||
<property name="text">
|
||||
<string>Version 1.3.0</string>
|
||||
<string>Version 0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -37,7 +37,7 @@ import six
|
|||
from . import modules
|
||||
from .RESTApi import REST, RESTError
|
||||
|
||||
VERSION='1.3.0'
|
||||
VERSION='0'
|
||||
|
||||
__title__ = 'OpenGnsys Agent'
|
||||
__version__ = VERSION
|
||||
|
|
|
@ -17,11 +17,13 @@ def update_version():
|
|||
|
||||
with fileinput.FileInput ('about-dialog.ui', inplace=True) as file:
|
||||
for line in file:
|
||||
print (line.replace ('Version [^<]*', f'Version {version}'), end='')
|
||||
new = re.sub (r'Version [^<]*', 'Version {}'.format(version), line)
|
||||
print (new, end='')
|
||||
|
||||
with fileinput.FileInput ('opengnsys/__init__.py', inplace=True) as file:
|
||||
for line in file:
|
||||
print(line.replace ('VERSION=.*', f"VERSION='{version}'"), end='')
|
||||
new = re.sub (r'VERSION=.*', "VERSION='{}'".format(version), line)
|
||||
print (new, end='')
|
||||
|
||||
with open ('../windows/VERSION', 'w') as outfile:
|
||||
outfile.write (win_version + '\n')
|
||||
|
|
Loading…
Reference in New Issue