Activating venv is not necessary.

This commit is contained in:
Chris GIACOFEI 2024-06-03 14:57:04 -04:00
parent e61424586e
commit 4aa7608734

View File

@ -13,22 +13,18 @@ $(VENV)/touchfile: requirements.txt
test -d $(VENV) || python3 -m venv $(VENV)
touch $(VENV)/touchfile
.PHONY: venv
venv: $(VENV)/touchfile ## Make a new virtual environment
source $(BIN)/activate
.PHONY: install
install: venv ## Make venv and install requirements
install: $(VENV)/touchfile ## Make venv and install requirements
$(BIN)/pip install --upgrade -r requirements.txt
.PHONY: migrate
migrate: venv ## Make and run migrations
migrate: ## Make and run migrations
$(PYTHON) manage.py makemigrations
$(PYTHON) manage.py migrate
$(PYTHON) manage.py collectstatic --noinput
.PHONY: test
test: venv ## Run tests
test: ## Run tests
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
.PHONY: pull