MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / write_to_version_file

Function write_to_version_file

versioneer.py:1418–1425  ·  view source on GitHub ↗

Write the given version number to the given _version.py file.

(filename, versions)

Source from the content-addressed store, hash-verified

1416
1417
1418def write_to_version_file(filename, versions):
1419 """Write the given version number to the given _version.py file."""
1420 os.unlink(filename)
1421 contents = json.dumps(versions, sort_keys=True, indent=1, separators=(",", ": "))
1422 with open(filename, "w") as f:
1423 f.write(SHORT_VERSION_PY % contents)
1424
1425 print("set %s to '%s'" % (filename, versions["version"]))
1426
1427
1428def plus_or_dot(pieces):

Callers 5

runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
make_release_treeMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…