def _bucket_from_workspace_name(wname):
    """Try to assert the bucket name from the workspace name.

    E.g. it will answer www.bazel.build if the workspace name is build_bazel_www.

    Args:
       wname: workspace name

    Returns:
       the guessed name of the bucket for this workspace.
    """
    revlist = []
    for part in wname.split("_"):
        revlist.insert(0, part)
    return ".".join(revlist)