From b4b9ecb9c8638d61bea7525fe5ee83a4a2517f84 Mon Sep 17 00:00:00 2001 From: Carlos Natalino Date: Thu, 30 Sep 2021 13:33:49 +0000 Subject: [PATCH] Including the dependencies of all components into the development dependencies. --- .gitignore | 2 +- install_development_dependencies.sh | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ab4ba81ba..c49962522 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,7 @@ share/python-wheels/ .installed.cfg *.egg MANIFEST -requirements.txt +# requirements.txt # removed to enable tracking versions of packages over time # PyInstaller # Usually these files are written by a python script from a template diff --git a/install_development_dependencies.sh b/install_development_dependencies.sh index b4c1b4777..4f395df2a 100755 --- a/install_development_dependencies.sh +++ b/install_development_dependencies.sh @@ -1,3 +1,24 @@ #!/bin/bash -pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchmark coverage +# installing basic tools +pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchmark coverage grpcio-tools + +# creating an empty file +echo "" > requirements.in + +#TODO: include here your component +COMPONENTS="compute context device monitoring" + +# compiling dependencies from all components +for component in $COMPONENTS +do + echo "computing requirements for component $component" + diff requirements.in src/$component/requirements.in | grep '^>' | sed 's/^>\ //' >> requirements.in +done + +pip-compile --output-file=requirements.txt requirements.in +python -m pip install -r requirements.txt + +# removing the temporary files +rm requirements.in +rm requirements.txt -- GitLab