nuno-faria commented on code in PR #26007:
URL: https://github.com/apache/datafusion/pull/26007#discussion_r4177096248


##########
dev/release/README.md:
##########
@@ -90,22 +90,18 @@ git push -u apache branch-50 # push branch to apache remote
 
 ### 2. Prepare PR to Update the Release Version
 
-Manually update the DataFusion version in the root `Cargo.toml` to
-reflect the new release version. Ensure `Cargo.lock` is updated accordingly by
-running:
+Update the DataFusion version using the following Python script:
 
 ```shell
-cargo check -p datafusion
+# replace NEW_VERSION before executing (e.g., 50.0.0)
+python3 dev/update_datafusion_versions.py NEW_VERSION
 ```
 
-Within the user documentation there are references to the current version 
number.
-Update these to the current version. At the time of this writing we need to 
manually
-update the following files
+This updates the DataFusion version across all files, including documentation. 
The only extra step required is to update the `Cargo.lock` file, using the 
following command:

Review Comment:
   The Cargo.lock is not updated by the script. Are you maybe running 
rust-analyzer in the background (e.g., in vscode)? I tested again and these are 
the files that changed for me:
   
   ```
   Changes not staged for commit:
     (use "git add <file>..." to update what will be committed)
     (use "git restore <file>..." to discard changes in working directory)
           modified:   Cargo.toml
           modified:   ci/scripts/release_version_labeler.js
           modified:   docs/source/download.md
           modified:   docs/source/user-guide/configs.md
           modified:   docs/source/user-guide/crate-configuration.md
           modified:   docs/source/user-guide/example-usage.md
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to