diff --git a/release_scripts/localization_scripts/README.md b/release_scripts/localization_scripts/README.md index 531aaab574..11fd925e4c 100644 --- a/release_scripts/localization_scripts/README.md +++ b/release_scripts/localization_scripts/README.md @@ -9,7 +9,7 @@ All of these scripts provide more details on usage by calling the script with `- ## Dependencies -These scripts require the python libraries: gitpython, jproperties, pyexcel-xlsx, xlsxwriter and pyexcel along with python >= 3.9.1. The virtual environment to set up dependencies can be activated with venv/Scripts/activate. As a consequence of gitpython, this project also requires git >= 1.7.0. +This script requires the python libraries: gitpython, jproperties, pyexcel-xlsx, xlsxwriter and pyexcel along with python >= 3.9.1 or the requirements.txt file found in this directory can be used (more information on that can be found [here](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#using-requirements-files)). As a consequence of gitpython, this project also requires git >= 1.7.0. ## Basic Localization Update Workflow diff --git a/release_scripts/localization_scripts/allbundlesscript.py b/release_scripts/localization_scripts/allbundlesscript.py index 70fd4ed5f5..99ed3fb6a1 100644 --- a/release_scripts/localization_scripts/allbundlesscript.py +++ b/release_scripts/localization_scripts/allbundlesscript.py @@ -1,8 +1,9 @@ """This script finds all '.properties-MERGED' files and writes relative path, key, and value to a CSV file. This script requires the python libraries: gitpython, jproperties, pyexcel-xlsx, xlsxwriter and pyexcel along with -python >= 3.9.1 or the virtual environment can be used by activating venv/Scripts/activate. As a -consequence of gitpython, it also requires git >= 1.7.0. +python >= 3.9.1 or the requirements.txt file found in this directory can be used +(https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#using-requirements-files). As a +consequence of gitpython, this project also requires git >= 1.7.0. This script relies on fetching 'HEAD' from current branch. So make sure repo is on correct branch (i.e. develop). """ diff --git a/release_scripts/localization_scripts/diffscript.py b/release_scripts/localization_scripts/diffscript.py index e77f170a55..bab6291d2a 100644 --- a/release_scripts/localization_scripts/diffscript.py +++ b/release_scripts/localization_scripts/diffscript.py @@ -2,8 +2,9 @@ and generates a csv file containing the items changed. This script requires the python libraries: gitpython, jproperties, pyexcel-xlsx, xlsxwriter and pyexcel along with -python >= 3.9.1 or the virtual environment can be used by activating venv/Scripts/activate. As a -consequence of gitpython, it also requires git >= 1.7.0. +python >= 3.9.1 or the requirements.txt file found in this directory can be used +(https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#using-requirements-files). As a +consequence of gitpython, this project also requires git >= 1.7.0. """ import sys from envutil import get_proj_dir diff --git a/release_scripts/localization_scripts/requirements.txt b/release_scripts/localization_scripts/requirements.txt new file mode 100644 index 0000000000..01d9ca0c9e Binary files /dev/null and b/release_scripts/localization_scripts/requirements.txt differ diff --git a/release_scripts/localization_scripts/updatepropsscript.py b/release_scripts/localization_scripts/updatepropsscript.py index 3069025f86..49f6382d75 100644 --- a/release_scripts/localization_scripts/updatepropsscript.py +++ b/release_scripts/localization_scripts/updatepropsscript.py @@ -1,8 +1,9 @@ """This script finds all '.properties-MERGED' files and writes relative path, key, and value to a CSV file. This script requires the python libraries: gitpython, jproperties, pyexcel-xlsx, xlsxwriter and pyexcel along with -python >= 3.9.1 or the virtual environment can be used by activating venv/Scripts/activate. As a -consequence of gitpython, it also requires git >= 1.7.0. +python >= 3.9.1 or the requirements.txt file found in this directory can be used +(https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#using-requirements-files). As a +consequence of gitpython, this project also requires git >= 1.7.0. """ from typing import List, Dict, Tuple, Callable, Iterator, Union