Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to the Makefile #257

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ fix:
index:
$(EXEC_CMD) $(POETRY_CMD) python manage.py update_index

.PHONY: init
init:
$(EXEC_CMD) poetry install --no-root --without dev
.PHONY: first-deploy
first-deploy:
$(EXEC_CMD) $(POETRY_CMD) python manage.py migrate
make collectstatic
$(EXEC_CMD) $(POETRY_CMD) python manage.py set_config
Expand All @@ -58,22 +57,30 @@ init:
$(EXEC_CMD) $(POETRY_CMD) python manage.py import_page_templates
make index

.PHONY: init
init:
$(EXEC_CMD) poetry install --no-root --without dev
make first-deploy

.PHONY: init-dev
init-dev:
make init
$(EXEC_CMD) poetry install --no-root
make first-deploy
$(EXEC_CMD) $(POETRY_CMD) pre-commit install


.PHONY: update
update:
$(EXEC_CMD) poetry install --no-root --without dev
.PHONY: deploy
deploy:
$(EXEC_CMD) $(POETRY_CMD) python manage.py migrate
make collectstatic
$(EXEC_CMD) $(POETRY_CMD) python manage.py import_dsfr_pictograms
$(EXEC_CMD) $(POETRY_CMD) python manage.py import_page_templates
make index

.PHONY: update
update:
$(EXEC_CMD) poetry install --no-root --without dev
make deploy

.PHONY: demo
demo:
make init
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "sites-faciles"
requires-python = "<4.0,>=3.10"
version = "1.11.4"
version = "1.11.5"
description = "Gestionnaire de contenu permettant de créer et gérer un site internet basé sur le Système de design de l’État, accessible et responsive"
authors = [
{name = "Sébastien Reuiller", email = "[email protected]"},
Expand Down
Loading