def get(cls): return cls( get_abbr_impl(), get_abi_tag(), get_impl_ver(), str(sys.version_info[0]), str(sys.version_info[1]), str(sys.version_info[2]) )
def test_platform_supported_tags_osx_minimal(): impl_tag = "{}{}".format(get_abbr_impl(), get_impl_ver()) assert_tags( 'macosx-10.5-x86_64', [ (impl_tag, 'none', 'any'), ('py%s' % sys.version_info[0], 'none', 'any'), (impl_tag, get_abi_tag(), 'macosx_10_5_x86_64') ] )
def test_platform_supported_tags_osx_minimal(): impl_tag = "{}{}".format(get_abbr_impl(), get_impl_ver()) assert_tags('macosx-10.5-x86_64', [(impl_tag, 'none', 'any'), ('py%s' % sys.version_info[0], 'none', 'any'), (impl_tag, get_abi_tag(), 'macosx_10_5_x86_64')])
def current(cls): platform = get_platform() impl = get_abbr_impl() version = get_impl_ver() abi = get_abi_tag() return cls(platform, impl, version, abi)