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

Function update_datafusion_version

dev/update_datafusion_versions.py:78–89  ·  view source on GitHub ↗
(cargo_toml: str, new_version: str)

Source from the content-addressed store, hash-verified

76
77
78def update_datafusion_version(cargo_toml: str, new_version: str):
79 print(f'updating {cargo_toml}')
80 with open(cargo_toml) as f:
81 data = f.read()
82
83 doc = tomlkit.parse(data)
84 pkg = doc.get('package')
85 if 'workspace' not in pkg['version']:
86 pkg['version'] = new_version
87
88 with open(cargo_toml, 'w') as f:
89 f.write(tomlkit.dumps(doc))
90
91def update_downstream_versions(cargo_toml: str, new_version: str):
92 with open(cargo_toml) as f:

Callers 1

mainFunction · 0.85

Calls 4

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…