Skip to content

Commit

Permalink
update script to update dependency versions in workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Feb 16, 2024
1 parent a8ce0e6 commit 740d9bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dev/update_datafusion_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ def update_workspace_version(new_version: str):
print('workspace package', pkg)
pkg['version'] = new_version

doc = tomlkit.parse(data)

for crate in crates.keys():
df_dep = doc.get('workspace').get('dependencies', {}).get(crate)
# skip crates that pin datafusion using git hash
if df_dep is not None and df_dep.get('version') is not None:
print(f'updating {crate} dependency in {cargo_toml}')
df_dep['version'] = new_version

with open(cargo_toml, 'w') as f:
f.write(tomlkit.dumps(doc))

Expand Down

0 comments on commit 740d9bd

Please sign in to comment.