Add poetry-plugin-export and fix indentation

Manually install the plugin to avoid issues with future `poetry`
versions as of the warning messages recommend:

```
WARNING: Running pip as the 'root' user can result in broken permissions
and conflicting behaviour with the system package manager. It is
recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv 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'.
```
This commit is contained in:
Alvaro Bartolome 2024-11-29 13:14:05 +00:00
parent bbde434c40
commit 63b8c59d9f
No known key found for this signature in database

View File

@ -204,9 +204,11 @@ FROM conda-install AS poetry-requirements
COPY server/poetry.lock poetry.lock
COPY server/pyproject.toml pyproject.toml
RUN pip install poetry && poetry export -f requirements.txt \
--extras "attention bnb accelerate compressed-tensors marlin moe quantize peft outlines" \
--output requirements_poetry.txt
RUN pip install poetry && \
poetry self add poetry-plugin-export && \
poetry export -f requirements.txt \
--extras "attention bnb accelerate compressed-tensors marlin moe quantize peft outlines" \
--output requirements_poetry.txt
FROM conda-install AS base