Skip to content

Commit daca4ea

Browse files
committed
fix(poetry): split dev deps into test and dev
1 parent 7ee4361 commit daca4ea

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

.github/workflows/ci_backend_lint_and_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cache-dependency-path: '**/poetry.lock'
4646
- name: Install dependencies
4747
run: |
48-
cd backend && poetry install --no-interaction --no-root --with dev
48+
cd backend && poetry install --no-interaction --no-root --with test
4949
5050
- name: Code formatting check with Black
5151
run: |

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ USER app
2828

2929
FROM base AS local
3030
RUN apt-get update && apt-get install procps -y # for pkill
31-
RUN POETRY_VIRTUALENVS_CREATE=false poetry install --with dev
31+
RUN POETRY_VIRTUALENVS_CREATE=false poetry install --with test,dev
3232
USER app

backend/pyproject.toml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,21 @@ flower = "^2.0.1" # 2.0.0 !
5656
llama-index-llms-nvidia = "^0.3.1"
5757
django-anymail = {extras = ["amazon-ses"], version = "^12.0"}
5858

59-
[tool.poetry.group.dev.dependencies]
59+
# OpenAPI
60+
argh = "^0.31.2"
61+
62+
[tool.poetry.group.test.dependencies]
6063

6164
# test dependencies
6265
black = "^24.10.0"
6366
flake8 = "^7.1.1"
6467
pytest = "^8.3.4"
6568
pytest-cov = "^6.0.0"
6669
pytest-django = "^4.8.2"
67-
68-
# factory
6970
factory-boy = "^3.3.0"
71+
faker = "^33.3.1"
72+
73+
[tool.poetry.group.dev.dependencies]
7074

7175
# dev dependencies
7276
django-debug-toolbar = "^5.0.0"
@@ -80,20 +84,8 @@ ipython = "^8.31.0"
8084
# jupyter's dependency on argon2-cffi can't be installed on Apple M1
8185
# jupyter = { version = "^1.0.0", markers = "platform_machine == 'x86_64'" }
8286
jupyter = "^1.1.1"
83-
84-
# OpenAPI
85-
pyyaml = "^6.0.1"
86-
argh = "^0.31.2"
87-
88-
# faker
89-
faker = "^33.3.1"
90-
91-
# django-silk
9287
django-silk = "^5.3.0"
93-
94-
# pyparsing
95-
# poetry 1.0.0 requires pyparsing<3.0,>=2.2 but packaging tries to install a 3.0.6 which is not compatible
96-
pyparsing = "^3.2.1" # 3.2.1
88+
pyparsing = "^3.2.1"
9789

9890
[build-system]
9991
requires = ["poetry-core>=2.0.1"]

0 commit comments

Comments
 (0)