Skip to content

Commit

Permalink
fix build for poetry 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AMontagu committed Jan 27, 2025
1 parent e1bb393 commit 86eea12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ COPY poetry.lock .

FROM builder AS server

COPY ./django_socio_grpc /opt/code/django_socio_grpc
RUN poetry install --with dev

FROM builder AS docs
Expand All @@ -30,6 +31,7 @@ RUN apt update \
&& apt clean

COPY docs docs
COPY ./django_socio_grpc /opt/code/django_socio_grpc
RUN poetry config virtualenvs.create false
RUN poetry install --with docs
RUN cd docs && make html
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ myst-parser = "^2.0.0"
sphinx-autodoc2 = "^0.5"

[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
requires = ["poetry-core>=2.0.1,<3.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.ruff.lint.isort]
Expand Down

0 comments on commit 86eea12

Please sign in to comment.