Update "requirements" make targer to also generate final
requirements.txt file for each Python package (StackStorm component).
Those files were not used in the past, but now that we install st2common
into virtual environment, st2common requirements.txt final is used and
we need to ensure it's always automatically generated and up to date.
@@ -260,6 +260,14 @@ requirements: virtualenv .sdist-requirements
# Generate all requirements to support current CI pipeline.
$(VIRTUALENV_DIR)/bin/python scripts/fixate-requirements.py --skip=virtualenv -s st2*/in-requirements.txt -f fixed-requirements.txt -o requirements.txt
+ # Generate finall requirements.txt file for each component
+ @for component in $(COMPONENTS); do\
+ echo "==========================================================="; \
+ echo "Generating requirements.txt for" $$component; \
+ echo "==========================================================="; \
+ $(VIRTUALENV_DIR)/bin/python scripts/fixate-requirements.py --skip=virtualenv -s $$component/in-requirements.txt -f fixed-requirements.txt -o $$component/requirements.txt; \
+ done
+
# Fix for Travis CI race
$(VIRTUALENV_DIR)/bin/pip install "six==1.11.0"
