本文整理汇总了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)