本文整理汇总了Python中fofix.core.Version.versionNum方法的典型用法代码示例。如果您正苦于以下问题:Python Version.versionNum方法的具体用法?Python Version.versionNum怎么用?Python Version.versionNum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fofix.core.Version
的用法示例。
在下文中一共展示了Version.versionNum方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_version
# 需要导入模块: from fofix.core import Version [as 别名]
# 或者: from fofix.core.Version import versionNum [as 别名]
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)
示例2: __orig_isSystemDLL
# 需要导入模块: from fofix.core import Version [as 别名]
# 或者: from fofix.core.Version import versionNum [as 别名]
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:
示例3: test_versionNum
# 需要导入模块: from fofix.core import Version [as 别名]
# 或者: from fofix.core.Version import versionNum [as 别名]
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)