# Suitable for python monorepo with packages in subdirectories(contains project.mk) .PHONY : _forward Makefile common.mk .DEFAULT_GOAL := help include common.mk SUBPKGS := $(patsubst %setup.py,%,$(wildcard */setup.py)) $(warning SUBPKGS is $(SUBPKGS)) % : _forward $(foreach t,$(SUBPKGS),$(MAKE) -C $t $@;) check: ## lint project using pre-commit hooks installed for git pre-commit run --all-files setup: python -m nltk.downloader stopwords rm -rf logs mkdir logs install-reqs: pip install -r requirements.txt install-dev-reqs: pip install -r requirements_dev.txt install: uninstall pypi install-reqs setup ## installs the requirements and download components uninstall: ## uninstalls the pip dependencies pip uninstall -y -r requirements.txt deploy: ## deploys the services by starting supervisord supervisord develop: uninstall pypi install-dev-reqs setup ## installs the requirements and setup development hooks pre-commit install