Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions dev/update_datafusion_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
'datafusion-benchmarks': 'benchmarks/Cargo.toml',
'datafusion-cli': 'datafusion-cli/Cargo.toml',
'datafusion-examples': 'datafusion-examples/Cargo.toml',
'datafusion-docs': 'docs/Cargo.toml',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file does not exist anymore.

}

def update_workspace_version(new_version: str):
Expand Down Expand Up @@ -116,7 +115,9 @@ def update_docs(path: str, new_version: str):
with open(path, 'r+') as fd:
content = fd.read()
fd.seek(0)
content = re.sub(r'datafusion = "(.+)"', f'datafusion = "{new_version}"', content)
content = re.sub(r'datafusion\s*=\s*"(.+?)"', f'datafusion = "{new_version}"', content)
content = re.sub(r'datafusion\s*=\s*\{\s*version\s*=\s*"(.+?)"', f'datafusion = {{ version = "{new_version}"', content)
fd.truncate()
fd.write(content)


Expand Down Expand Up @@ -144,6 +145,9 @@ def main():
update_downstream_versions(cargo_toml, new_version)

update_docs("README.md", new_version)
update_docs("docs/source/download.md", new_version)
update_docs("docs/source/user-guide/example-usage.md", new_version)
update_docs("docs/source/user-guide/crate-configuration.md", new_version)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion docs/source/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For example:

```toml
[dependencies]
datafusion = "41.0.0"
datafusion = "52.0.0"
```

While DataFusion is distributed via [crates.io] as a convenience, the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user-guide/crate-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ By default, Datafusion returns errors as a plain text message. You can enable mo
such as backtraces by enabling the `backtrace` feature to your `Cargo.toml` file like this:

```toml
datafusion = { version = "31.0.0", features = ["backtrace"]}
datafusion = { version = "52.0.0", features = ["backtrace"]}
```

Set environment [variables](https://doc.rust-lang.org/std/backtrace/index.html#environment-variables)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user-guide/example-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Find latest available Datafusion version on [DataFusion's
crates.io] page. Add the dependency to your `Cargo.toml` file:

```toml
datafusion = "latest_version"
datafusion = "52.0.0"
tokio = { version = "1.0", features = ["rt-multi-thread"] }
```

Expand Down