We're using pip-tools to manage our dependencies.
- So the main dependencies are in requirements.in
- The dev dependencies are in dev-requirements.in .
Please note that this file starts with
-c requirements.txt
This tells pip-compile to take into consideration the requirements from that file when compiling the dev dependencies - IMPORTANT ! The owner of the project folder needs to be the same as the user that runs the pip-compile and pip-sync commands. Otherwise you can get RemoteNotFoundError errors when pip tries to use vcs (git).
Make sure to have pip-tools installed:
FOR PYTHON 3:
pip install pip-tools==7.4.1
Compile the main dependencies:
FOR PYTHON 3:
pip-compile requirements.in --output-file=requirements.txt
Compile the dev dependencies:
FOR PYTHON 3:
pip-compile dev-requirements.in --output-file=dev-requirements.txt
Make sure your python environment has the correct libraries installed:
FOR PYTHON 3:
pip-sync requirements.txt dev-requirements.txt