Merge pull request 'refs #538 fix updating the ogagent version across the codebase' (#6) from versions into ogadmcli
Reviewed-on: #6ogadmcli
commit
67d5e81838
|
@ -65,7 +65,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="VersionLabel">
|
<widget class="QLabel" name="VersionLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Version 1.3.0</string>
|
<string>Version 0</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -37,7 +37,7 @@ import six
|
||||||
from . import modules
|
from . import modules
|
||||||
from .RESTApi import REST, RESTError
|
from .RESTApi import REST, RESTError
|
||||||
|
|
||||||
VERSION='1.3.0'
|
VERSION='0'
|
||||||
|
|
||||||
__title__ = 'OpenGnsys Agent'
|
__title__ = 'OpenGnsys Agent'
|
||||||
__version__ = VERSION
|
__version__ = VERSION
|
||||||
|
|
|
@ -17,11 +17,13 @@ def update_version():
|
||||||
|
|
||||||
with fileinput.FileInput ('about-dialog.ui', inplace=True) as file:
|
with fileinput.FileInput ('about-dialog.ui', inplace=True) as file:
|
||||||
for line in 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:
|
with fileinput.FileInput ('opengnsys/__init__.py', inplace=True) as file:
|
||||||
for line in 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:
|
with open ('../windows/VERSION', 'w') as outfile:
|
||||||
outfile.write (win_version + '\n')
|
outfile.write (win_version + '\n')
|
||||||
|
|
Loading…
Reference in New Issue