Skip to content

Commit

Permalink
Install Poetry's export plugin in integration Dockerfile
Browse files Browse the repository at this point in the history
> Warning: poetry-plugin-export will not be installed by default in a future version of Poetry.
> In order to avoid a breaking change and make your automation forward-compatible, please install poetry-plugin-export explicitly. See https://python-poetry.org/docs/plugins/#using-plugins for details on how to install a plugin.
> To disable this warning run 'poetry config warnings.export false'.
  • Loading branch information
andreaso committed Nov 4, 2023
1 parent 4b8085a commit 62b6018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
ARG pyver=3.11
FROM python:${pyver}-slim-bookworm AS python-prepare

RUN pip install --no-cache-dir poetry
RUN pip install --no-cache-dir poetry poetry-plugin-export

WORKDIR /pip
COPY pyproject.toml poetry.lock /pip/

RUN poetry config warnings.export false
RUN poetry export --without-hashes --format=requirements.txt --output=constraints.txt


Expand Down

0 comments on commit 62b6018

Please sign in to comment.