Requirements:
- Python >= 3.10
Instructions:
-
Create a Virtual Environment:
It's highly recommended to use a virtual environment to isolate project dependencies. Refer to wwwinsights for creating virtual environments.
-
Install
pip-tools:Activate your virtual environment and install
pip-toolsusing the following command:pip install pip-tools
-
Install Dependencies:
This step uses a pre-compiled and verified
requirements.txt.compiledfile for faster and more reliable installation:pip-sync -v requirements.txt.compiled --pip-args "--retries 3 --timeout 3600"-v: Enables verbose output.--pip-args: Passes arguments to pip for installation. If your pip installation is slow due to firewalls or blockage, use those parameters might help you.--retries 3: Attempts installation up to 3 times on failure.--timeout 3600: Sets a timeout of 1 hour for each installation attempt.
-
Compile Your Own Requirements (Developers ONLY):
If you added any new python libraries to the souce code, add it in
requirements.in. Please pin the version if you feel a major update will break your exsiting code.pip-compile -v -o requirements.txt.compiled requirements.in --pip-args "--retries 3 --timeout 3600"-v: Enables verbose output.-o requirements.txt.compiled: Specifies the output file name.
-
Check in (Developers ONLY)
Please check in both requirements.in and requirements.txt.compiled.
requirements.txt.freeze.obsolete is there for comparision purpose, and do not update or use it anymore.