Skip to content

Commit

Permalink
chore: create a division of install packages with poetry dev vs prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jamoqs committed Dec 14, 2023
1 parent 2ce5a26 commit 220cc4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,16 @@ install-poetry: ## Install Poetry
@curl -sSL https://install.python-poetry.org | python -
.PHONY: install-poetry

install-packages: ## Install project dependencies
install-packages: ## Install project dependencies without dev dependencies
@echo "Installing project dependencies..."
@$(POETRY) install
@$(POETRY) install --only main
.PHONY: install-packages

install-packages-dev: ## Install project dependencies with dev dependencies
@echo "Installing project dependencies..."
@$(POETRY) install
.PHONY: install-packages-dev

logs: ## display docker app logs (follow mode)
@$(LOGS_DOCKER_DEV) -f nau-financial-app
.PHONY: logs
Expand Down
13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ license="AGPL-3.0-or-later"
[tool.poetry.dependencies]
python = "^3.10.2"
django = "^4.2.4"
pre-commit = "^3.3.3"
black = "^23.7.0"
flake8 = "^6.1.0"
factory-boy = "^3.3.0"
pytest-django = "^4.5.2"
django-safedelete = "^1.3.2"
unidecode = "^1.3.6"
djangorestframework = "^3.14.0"
Expand All @@ -39,6 +34,14 @@ django-celery-results = "2.3.1"
django-storages = "^1.14.2"
boto3 = "^1.33.4"
gunicorn = "21.2.0"
factory-boy = "^3.3.0"
pytest-django = "^4.5.2"

[tool.poetry.dev-dependencies]
pre-commit = "^3.3.3"
black = "^23.7.0"
flake8 = "^6.1.0"


[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 220cc4f

Please sign in to comment.