Compare commits

..

No commits in common. "67d5e81838706a554ace4edbc328096a7961ddd2" and "f7fd5d5570dca10e5363d93fa47d33aa6f54a7c8" have entirely different histories.

3 changed files with 4 additions and 6 deletions

View File

@ -65,7 +65,7 @@
<item>
<widget class="QLabel" name="VersionLabel">
<property name="text">
<string>Version 0</string>
<string>Version 1.3.0</string>
</property>
</widget>
</item>

View File

@ -37,7 +37,7 @@ import six
from . import modules
from .RESTApi import REST, RESTError
VERSION='0'
VERSION='1.3.0'
__title__ = 'OpenGnsys Agent'
__version__ = VERSION

View File

@ -17,13 +17,11 @@ def update_version():
with fileinput.FileInput ('about-dialog.ui', inplace=True) as file:
for line in file:
new = re.sub (r'Version [^<]*', 'Version {}'.format(version), line)
print (new, end='')
print (line.replace ('Version [^<]*', f'Version {version}'), end='')
with fileinput.FileInput ('opengnsys/__init__.py', inplace=True) as file:
for line in file:
new = re.sub (r'VERSION=.*', "VERSION='{}'".format(version), line)
print (new, end='')
print(line.replace ('VERSION=.*', f"VERSION='{version}'"), end='')
with open ('../windows/VERSION', 'w') as outfile:
outfile.write (win_version + '\n')