本文整理汇总了Python中config.PROJECTS.items方法的典型用法代码示例。如果您正苦于以下问题:Python PROJECTS.items方法的具体用法?Python PROJECTS.items怎么用?Python PROJECTS.items使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类config.PROJECTS
的用法示例。
在下文中一共展示了PROJECTS.items方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from config import PROJECTS [as 别名]
# 或者: from config.PROJECTS import items [as 别名]
master_config = json.load(open("master_config.json"))
c = BuildmasterConfig = {}
c["slavePortnum"] = master_config.get("pb_port", None)
c["status"] = []
if "http_port" in master_config:
c["status"].append(WebStatus(http_port=master_config["http_port"], allowForce=True))
c["buildbotURL"] = "http://%(hostname)s:%(http_port)i/" % master_config
if "ssh_port" in master_config:
c["manhole"] = manhole.PasswordManhole("tcp:%(ssh_port)i:interface=127.0.0.1" % master_config, "cltbld", "password")
from config import BRANCHES, PROJECTS, TRY_SLAVES, BRANCH_PROJECTS
ACTIVE_BRANCHES = ["try"]
ACTIVE_THUNDERBIRD_BRANCHES = ["try-comm-central"]
ACTIVE_RELEASE_BRANCHES = []
ACTIVE_THUNDERBIRD_RELEASE_BRANCHES = []
ACTIVE_MOBILE_RELEASE_BRANCHES = []
ACTIVE_PROJECTS = [k for k, v in PROJECTS.items() if v.get("enable_try")]
ACTIVE_BRANCH_PROJECTS = [k for k, v in BRANCH_PROJECTS.items() if v.get("enable_try")]
# Override with TRY_SLAVES
SLAVES = TRY_SLAVES
ENABLE_RELEASES = False
QUEUEDIR = master_config.get("queuedir", "/dev/shm/queue")