|
48 | 48 | 'datafusion-benchmarks': 'benchmarks/Cargo.toml', |
49 | 49 | 'datafusion-cli': 'datafusion-cli/Cargo.toml', |
50 | 50 | 'datafusion-examples': 'datafusion-examples/Cargo.toml', |
51 | | - 'datafusion-docs': 'docs/Cargo.toml', |
52 | 51 | } |
53 | 52 |
|
54 | 53 | def update_workspace_version(new_version: str): |
@@ -116,7 +115,9 @@ def update_docs(path: str, new_version: str): |
116 | 115 | with open(path, 'r+') as fd: |
117 | 116 | content = fd.read() |
118 | 117 | fd.seek(0) |
119 | | - content = re.sub(r'datafusion = "(.+)"', f'datafusion = "{new_version}"', content) |
| 118 | + content = re.sub(r'datafusion\s*=\s*"(.+?)"', f'datafusion = "{new_version}"', content) |
| 119 | + content = re.sub(r'datafusion\s*=\s*\{\s*version\s*=\s*"(.+?)"', f'datafusion = {{ version = "{new_version}"', content) |
| 120 | + fd.truncate() |
120 | 121 | fd.write(content) |
121 | 122 |
|
122 | 123 |
|
@@ -144,6 +145,9 @@ def main(): |
144 | 145 | update_downstream_versions(cargo_toml, new_version) |
145 | 146 |
|
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) |
147 | 151 |
|
148 | 152 |
|
149 | 153 | if __name__ == "__main__": |
|
0 commit comments