__init__.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:drift 作者: dgnorth 项目源码 文件源码
def create_deployment_manifest(method):
    """Returns a dict describing the current deployable."""
    service_info = get_service_info()

    commit = get_commit()
    version = get_git_version()

    info = {
        'deployable': service_info['name'],
        'method': method,
        'username': getpass.getuser(),
        'datetime': datetime.utcnow().isoformat(),
        'branch': get_branch(),
        'commit': commit,
        'commit_url': get_repo_url() + "/commit/" + commit,
        'release': version['tag'] if version else 'untagged-branch'
    }

    return info
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号