MCPcopy Create free account
hub / github.com/apache/datafusion / update_commit_cargo_toml

Function update_commit_cargo_toml

dev/update_arrow_deps.py:67–78  ·  view source on GitHub ↗
(cargo_toml, new_sha)

Source from the content-addressed store, hash-verified

65
66
67def update_commit_cargo_toml(cargo_toml, new_sha):
68 print('updating {}'.format(cargo_toml.absolute()))
69 with open(cargo_toml) as f:
70 data = f.read()
71
72 doc = tomlkit.parse(data)
73
74 update_commit_dependencies(doc.get('dependencies'), new_sha)
75 update_commit_dependencies(doc.get('dev-dependencies'), new_sha)
76
77 with open(cargo_toml, 'w') as f:
78 f.write(tomlkit.dumps(doc))
79
80
81def update_version_cargo_toml(cargo_toml, new_version):

Callers 1

mainFunction · 0.85

Calls 6

formatMethod · 0.80
readMethod · 0.80
parseMethod · 0.45
getMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…