()
| 122 | |
| 123 | |
| 124 | def 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 | |
| 153 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…