def write_to_version_file(filename, versions):
    f = open(filename, "w")
    f.write(SHORT_VERSION_PY % versions)
    f.close()
    print("set %s to '%s'" % (filename, versions["version"]))
dataset/ETHPy150Open ClusterHQ/machinist/versioneer.py/write_to_version_file/original