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

Create a division of install packages with poetry dev vs prod #232

Merged
merged 1 commit into from
Dec 15, 2023
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
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"
Comment on lines +37 to +38
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Factory stuff is normal used for testing...
Also the pytest stuff...


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


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