MCPcopy
hub / github.com/quantopian/zipline / write_to_version_file

Function write_to_version_file

versioneer.py:1159–1166  ·  view source on GitHub ↗
(filename, versions)

Source from the content-addressed store, hash-verified

1157
1158
1159def write_to_version_file(filename, versions):
1160 os.unlink(filename)
1161 contents = json.dumps(versions, sort_keys=True,
1162 indent=1, separators=(",", ": "))
1163 with open(filename, "w") as f:
1164 f.write(SHORT_VERSION_PY % contents)
1165
1166 print("set %s to '%s'" % (filename, versions["version"]))
1167
1168
1169def plus_or_dot(pieces):

Callers 3

runMethod · 0.85
runMethod · 0.85
make_release_treeMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected