diff options
| author | Rémy HUBSCHER <hubscher.remy@gmail.com> | 2020-04-21 10:30:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-21 10:30:13 +0200 |
| commit | 5d3266873eb4892dc2e5b9da499532d1ad013197 (patch) | |
| tree | ee25876f1b1f1d2ec66859ee8162c9bc479ff24b /Makefile | |
| parent | 026a0722357d74b143ed2d974ad2d871a56041b3 (diff) | |
| download | ihatemoney-mirror-5d3266873eb4892dc2e5b9da499532d1ad013197.zip ihatemoney-mirror-5d3266873eb4892dc2e5b9da499532d1ad013197.tar.gz ihatemoney-mirror-5d3266873eb4892dc2e5b9da499532d1ad013197.tar.bz2 | |
Update known working set. (#558)
* Update known working set.
* Pin dependencies in setup.cfg.
* Cleanup Makefile.
* Try the python_version trick.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -11,10 +11,10 @@ ZOPFLIPNG := zopflipng .PHONY: all all: install ## Alias for install .PHONY: install -install: virtualenv $(INSTALL_STAMP) ## Install dependencies -$(INSTALL_STAMP): +install: setup.cfg $(INSTALL_STAMP) ## Install dependencies +$(INSTALL_STAMP): virtualenv $(VENV)/bin/pip install -U pip - $(VENV)/bin/pip install -r requirements.txt + $(VENV)/bin/pip install -e . touch $(INSTALL_STAMP) .PHONY: virtualenv @@ -23,9 +23,9 @@ $(PYTHON): $(VIRTUALENV) $(VENV) .PHONY: install-dev -install-dev: $(INSTALL_STAMP) $(DEV_STAMP) ## Install development dependencies -$(DEV_STAMP): $(PYTHON) dev-requirements.txt - $(VENV)/bin/pip install -Ur dev-requirements.txt +install-dev: setup.cfg $(INSTALL_STAMP) $(DEV_STAMP) ## Install development dependencies +$(DEV_STAMP): $(PYTHON) + $(VENV)/bin/pip install -Ue .[dev] touch $(DEV_STAMP) .PHONY: remove-install-stamp @@ -76,13 +76,6 @@ create-empty-database-revision: ## Create an empty database revision @read -p "Please enter a message describing this revision: " rev_message; \ $(PYTHON) -m ihatemoney.manage db revision -d ihatemoney/migrations -m "$${rev_message}" -.PHONY: build-requirements -build-requirements: ## Save currently installed packages to requirements.txt - $(VIRTUALENV) $(TEMPDIR) - $(TEMPDIR)/bin/pip install -U pip - $(TEMPDIR)/bin/pip install -Ue "." - $(TEMPDIR)/bin/pip freeze | grep -v -- '-e' > requirements.txt - .PHONY: clean clean: ## Destroy the virtual environment rm -rf .venv |
