本文整理汇总了Python中conans.server.service.service.ConanService.remove_package_files方法的典型用法代码示例。如果您正苦于以下问题:Python ConanService.remove_package_files方法的具体用法?Python ConanService.remove_package_files怎么用?Python ConanService.remove_package_files使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类conans.server.service.service.ConanService
的用法示例。
在下文中一共展示了ConanService.remove_package_files方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: remove_packages_files
# 需要导入模块: from conans.server.service.service import ConanService [as 别名]
# 或者: from conans.server.service.service.ConanService import remove_package_files [as 别名]
def remove_packages_files(conanname, version, username, channel, package_id, auth_user):
""" Remove any existing conanfiles or its packages created """
conan_service = ConanService(app.authorizer, app.file_manager, auth_user)
reference = ConanFileReference(conanname, version, username, channel)
package_reference = PackageReference(reference, package_id)
payload = json.load(request.body)
files = [os.path.normpath(filename) for filename in payload["files"]]
conan_service.remove_package_files(package_reference, files)