You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,20 @@
2
2
3
3
## update_library_version.sh
4
4
5
-
This script updates the version of a specified library in Pipfile and requirements-elyra.txt files, only if the new version is higher. It can optionally run `pipenv lock` after updating the version.
5
+
This script updates the version of one or more libraries in Pipfile and requirements-elyra.txt files, only if the new version is higher. It can optionally run `pipenv lock` after updating the version.
6
6
7
7
### Examples
8
8
9
-
Update the `numpy` library to version `2.0.1` in all files under `./myproject`, and run `pipenv lock`:
9
+
Update the `numpy` library to version `2.0.1`and the `pandas` library to version `2.2.2`in all files under the current folder (`.`), and run `pipenv lock`:
Update the `pandas` library to version `2.2.2` in all files under `./myproject` where the directory contains `include` or `this`, excluding directories containing `exclude` or `that`, and do not run `pipenv lock`:
15
+
Update the `pandas` library to version `2.2.2` in all files under the current folder (`.`), where the directory contains `include` or `this`, excluding directories containing `exclude` or `that`, and do not run `pipenv lock`:
echo" directory The root directory to start searching for Pipfile and requirements-elyra.txt files."
15
-
echo" library_name The name of the library to update."
16
-
echo" new_version The new version to set for the library."
15
+
echo" libraries JSON formatted array of objects with 'name' and 'version' fields to update."
17
16
echo" include_paths_with A pipe-separated list of substrings; only files in directories containing at least one of these substrings will be processed."
18
17
echo" exclude_paths_with A pipe-separated list of substrings; files in directories containing any of these substrings will be excluded."
19
18
echo" lock_files Whether to run 'pipenv lock' after updating the library version (true or false)."
0 commit comments