def test_get_version_info(): vcsdir = _vcs_path() versionthing = {'version': product_version()} if vcsdir is not None: versionthing['vcs_version'] = vcs_version() versionthing['updated'] = vcs_timestamp() versionthing['revision'] = vcs_revision() assert (versionthing == get_version_info())
# The directory of an extracted inno setup folder. This can # be obtained through innoextractor program from the internet. INNO_SETUP_DIR = cfg['INNO_SETUP_DIR'].replace('/', '\\') OUTPUT_FILE = '' # A temp cirectory for use during this build. TEMP_DIR = '' ORIG_CWD = os.path.abspath(os.getcwd()) OPENEIS_SETUP_SUPPORT_DIR = '' _vinfo = get_version_info() _VERSION_STRING = 'openeis-setup_{}-{}-{}'.format(_vinfo['version'], _vinfo['revision'], _vinfo['vcs_version']) # def build_exe(): # print('building exe using spec file: {}'.format(cfg.spec_file)) # cwd = os.getcwd() # try: # os.chdir(cfg.ece_server_dir) # do_call(['pyinstaller', '--onefile', '--clean', '--noconsole', # '--windowed', # '--icon', cfg.icon_file, # "{}".format('ece-app.py')]) # finally: # os.chdir(cwd)
MISC_DIR = cfg['MISC_DIR'].replace('/', '\\') # The directory of an extracted inno setup folder. This can # be obtained through innoextractor program from the internet. INNO_SETUP_DIR = cfg['INNO_SETUP_DIR'].replace('/', '\\') OUTPUT_FILE = '' # A temp cirectory for use during this build. TEMP_DIR = '' ORIG_CWD = os.path.abspath(os.getcwd()) OPENEIS_SETUP_SUPPORT_DIR = '' _vinfo = get_version_info() _VERSION_STRING = 'openeis-setup_{}-{}-{}'.format(_vinfo['version'], _vinfo['revision'], _vinfo['vcs_version']) # def build_exe(): # print('building exe using spec file: {}'.format(cfg.spec_file)) # cwd = os.getcwd() # try: # os.chdir(cfg.ece_server_dir) # do_call(['pyinstaller', '--onefile', '--clean', '--noconsole', # '--windowed', # '--icon', cfg.icon_file, # "{}".format('ece-app.py')]) # finally: # os.chdir(cwd)