本文整理匯總了Python中conans.server.service.service.ConanService.get_package_snapshot方法的典型用法代碼示例。如果您正苦於以下問題:Python ConanService.get_package_snapshot方法的具體用法?Python ConanService.get_package_snapshot怎麽用?Python ConanService.get_package_snapshot使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類conans.server.service.service.ConanService
的用法示例。
在下文中一共展示了ConanService.get_package_snapshot方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: get_package_snapshot
# 需要導入模塊: from conans.server.service.service import ConanService [as 別名]
# 或者: from conans.server.service.service.ConanService import get_package_snapshot [as 別名]
def get_package_snapshot(conanname, version, username, channel, package_id, auth_user):
"""
Get a dictionary with all files and their each md5s
"""
conan_service = ConanService(app.authorizer, app.file_manager, auth_user)
reference = ConanFileReference(conanname, version, username, channel)
package_reference = PackageReference(reference, package_id)
snapshot = conan_service.get_package_snapshot(package_reference)
snapshot_norm = {filename.replace("\\", "/"): the_md5
for filename, the_md5 in snapshot.items()}
return snapshot_norm