aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRémy HUBSCHER <hubscher.remy@gmail.com>2020-04-21 10:30:13 +0200
committerGitHub <noreply@github.com>2020-04-21 10:30:13 +0200
commit5d3266873eb4892dc2e5b9da499532d1ad013197 (patch)
treeee25876f1b1f1d2ec66859ee8162c9bc479ff24b /Makefile
parent026a0722357d74b143ed2d974ad2d871a56041b3 (diff)
downloadihatemoney-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--Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 42b0e26..ae9e46c 100644
--- a/Makefile
+++ b/Makefile
@@ -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