def test_version(self): """Test the complete version format""" complete_version = Version.version() version_num = Version.versionNum() release = Version.revision() expected_version = "%s %s" % (version_num, release) self.assertEqual(complete_version, expected_version)
exclude = ['pygame', 'libogg'] for dll in exclude: if pathname.lower().find(dll) != -1: return 0 return __orig_isSystemDLL(pathname) py2exe.build_exe.isSystemDLL = isSystemDLL setup_args.update({ 'zipfile': "data/library.zip", 'windows': [ { "script": "FoFiX.py", "icon_resources": [(1, "./win32/fofix.ico")], "other_resources": [(RT_VERSION, 1, VersionResource( # the parameter below must consist only of up to four numerical fields separated by dots Version.versionNum(), file_description="Frets on Fire X", legal_copyright=r"© 2008-2013 FoFiX Team. GNU GPL v2 or later.", company_name="FoFiX Team", internal_name="FoFiX.exe", original_filename="FoFiX.exe", product_name=Version.PROGRAM_NAME, # when run from the exe, FoFiX will claim to be "FoFiX v" + product_version product_version=Version.version() ).resource_bytes())] } ], 'data_files': data_files }) elif sys.platform == 'darwin': try:
def test_versionNum(self): """Test the version format""" version_num = Version.versionNum() pattern_version = "\d+.\d+.\d+" match_version = re.match(pattern_version, version_num) self.assertIsNotNone(match_version)