Skip to content

Commit 761b774

Browse files
committed
Update the main version for poetry and poetry's plugins
1 parent 4bd9da3 commit 761b774

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FROM python:3.10-slim-bookworm AS builder
44
WORKDIR /build
55

66
RUN set -ex && python3 -m pip install --no-cache-dir \
7-
'poetry>=2.0.0' \
8-
'poetry-plugin-export>=1.9' \
7+
'poetry>=2.0,<3.0' \
8+
'poetry-plugin-export>=1.8,<2.0' \
99
&& poetry --version
1010

1111
ENV POETRY_CACHE_DIR=/tmp/poetry \
@@ -16,7 +16,7 @@ ENV POETRY_CACHE_DIR=/tmp/poetry \
1616

1717
COPY poetry.lock pyproject.toml /build/
1818

19-
RUN poetry export --extras cuda > requirements.txt && rm --recursive --force -- "${POETRY_CACHE_DIR}"
19+
RUN poetry export --without-hashes --extras cuda > requirements.txt && rm --recursive --force -- "${POETRY_CACHE_DIR}"
2020

2121
# Step -- 2.
2222
FROM nvidia/cuda:12.6.3-cudnn-devel-ubuntu22.04 AS runtime

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build-system]
2-
requires = ["poetry-core>=2.0.0"]
2+
requires = ["poetry-core>=2.0,<3.0"]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry.requires-plugins]
6-
poetry-plugin-export = ">=1.9"
6+
poetry-plugin-export = ">=1.8,<2.0"
77

88
[project]
99
name = "python_template"

0 commit comments

Comments
 (0)