Code: Select all
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "bar"
dependencies = [
"pandas",
]
[project.optional-dependencies]
foo = [
"matplotlib",
]
< /code>
... und Dockerfile: < /p>
# ...
WORKDIR /app
COPY . /app
RUN pip install /app
Ich möchte vermeiden:
[*] andere Tools wie Poesie
Erstellen Sie einen Anforderungen. (d.h. gleiche Datei) wie möglich.
Code: Select all
# ...
WORKDIR /app
COPY ./pyproject.toml /app/
RUN pip install --requirements-from /app/pyproject.toml #