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

Function main

dev/update_datafusion_versions.py:124–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123
124def main():
125 parser = argparse.ArgumentParser(
126 description=(
127 'Update datafusion crate version and corresponding version pins '
128 'in downstream crates.'
129 ))
130 parser.add_argument('new_version', type=str, help='new datafusion version')
131 args = parser.parse_args()
132
133 new_version = args.new_version
134 repo_root = Path(__file__).parent.parent.absolute()
135
136 print(f'Updating workspace in {repo_root} to {new_version}')
137 update_workspace_version(new_version)
138
139 print(f'Updating datafusion crate versions in {repo_root} to {new_version}')
140 for cargo_toml in crates.values():
141 update_datafusion_version(cargo_toml, new_version)
142
143 print(f'Updating datafusion dependency versions in {repo_root} to {new_version}')
144 for cargo_toml in crates.values():
145 update_downstream_versions(cargo_toml, new_version)
146
147 update_docs("README.md", new_version)
148 update_docs("docs/source/download.md", new_version)
149 update_docs("docs/source/user-guide/example-usage.md", new_version)
150 update_docs("docs/source/user-guide/crate-configuration.md", new_version)
151
152
153if __name__ == "__main__":

Callers 1

Calls 5

update_workspace_versionFunction · 0.85
update_docsFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…