當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。