当前位置: 首页>>代码示例>>Python>>正文


Python ConanMultiPackager.upload_packages方法代码示例

本文整理汇总了Python中conan.packager.ConanMultiPackager.upload_packages方法的典型用法代码示例。如果您正苦于以下问题:Python ConanMultiPackager.upload_packages方法的具体用法?Python ConanMultiPackager.upload_packages怎么用?Python ConanMultiPackager.upload_packages使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在conan.packager.ConanMultiPackager的用法示例。


在下文中一共展示了ConanMultiPackager.upload_packages方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import upload_packages [as 别名]
    gcc_versions = gcc_versions.split(",") if gcc_versions else None
    use_docker = os.getenv("CONAN_USE_DOCKER", False)
    upload = os.getenv("CONAN_UPLOAD", False)
    reference = os.getenv("CONAN_REFERENCE")
    password = os.getenv("CONAN_PASSWORD")
    travis = os.getenv("TRAVIS", False)
    travis_branch = os.getenv("TRAVIS_BRANCH", None)
    appveyor = os.getenv("APPVEYOR", False)
    appveyor_branch = os.getenv("APPVEYOR_REPO_BRANCH", None)

    channel = "stable" if travis and travis_branch == "master" else channel
    channel = (
        "stable"
        if appveyor and appveyor_branch == "master" and not os.getenv("APPVEYOR_PULL_REQUEST_NUMBER")
        else channel
    )
    os.environ["CONAN_CHANNEL"] = channel  # Override the environment value for test/conanfile.py file

    args = " ".join(sys.argv[1:])
    builder = ConanMultiPackager(args, username, channel)
    builder.add_common_builds(visual_versions=[10, 12, 14])
    print(builder.builds)

    if use_docker:
        builder.docker_pack(current_page, total_pages, gcc_versions)
    else:
        builder.pack(current_page, total_pages)

    if upload and reference and password:
        builder.upload_packages(reference, password)
开发者ID:TyRoXx,项目名称:conan-sqlite3,代码行数:32,代码来源:build.py


注:本文中的conan.packager.ConanMultiPackager.upload_packages方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。