def METHOD_NAME(fname=".appveyor.token"):
    """Make the authentication headers needed to use the Appveyor API."""
    if not os.path.exists(fname):
        fname = os.path.expanduser("~/bin/appveyor-token")
    if not os.path.exists(fname):
        raise RuntimeError(
            "Please create a file named `.appveyor.token` in the current directory. "
            "You can get the token from https://ci.appveyor.com/api-token"
        )
    with open(fname) as f:
        token = f.read().strip()
    headers = {
        'Authorization': 'Bearer {}'.format(token),
    }
    return headers