MCPcopy Create free account
hub / github.com/microsoft/debugpy / write_to_version_file

Function write_to_version_file

versioneer.py:1407–1415  ·  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

1405
1406
1407def write_to_version_file(filename, versions):
1408 """Write the given version number to the given _version.py file."""
1409 os.unlink(filename)
1410 contents = json.dumps(versions, sort_keys=True,
1411 indent=1, separators=(",", ": "))
1412 with open(filename, "w") as f:
1413 f.write(SHORT_VERSION_PY % contents)
1414
1415 print("set %s to '%s'" % (filename, versions["version"]))
1416
1417
1418def plus_or_dot(pieces):

Callers 5

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

Calls 2

dumpsMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…