Skip to content

Commit 6da36ad

Browse files
committed
fix: poetry
1 parent cef11df commit 6da36ad

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

docker/voting-node.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM jormungandr:latest as jorm
88

99
# stage 3
1010
FROM python as poetry
11-
RUN pip install poetry==1.8.0
11+
RUN pip install poetry==2.0.1
1212

1313
# Add python codebase
1414
COPY . /voting

services/voting-node/Earthfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ builder:
2121
zlib1g-dev
2222

2323
# Install Poetry
24-
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.0
24+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
2525

2626
SAVE IMAGE --cache-hint
2727

@@ -42,7 +42,8 @@ deps:
4242
RUN poetry config installer.max-workers 10
4343
# Install package dependencies without the voting_node package
4444
RUN poetry install --only main --no-root
45-
45+
RUN poetry self add poetry-plugin-export
46+
4647
# Copy the voting_node source code
4748
COPY --dir voting_node README.md ./
4849

utilities/fragment-exporter/Earthfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ deps:
1111
RUN apt-get update && \
1212
apt-get install -y --no-install-recommends curl
1313

14-
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.0
14+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
1515

1616
COPY pyproject.toml .
1717
COPY poetry.lock .

utilities/ideascale-importer/Earthfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
apt-get install -y --no-install-recommends curl build-essential libxml2-dev libxslt-dev zlib1g-dev python3-lxml
1616

1717
# Install Poetry
18-
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.0
18+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
1919
# Set path to poetry
2020
ENV PATH=/root/.local/bin:$PATH
2121

@@ -28,7 +28,8 @@ build:
2828
RUN poetry env use python
2929
RUN poetry config installer.max-workers 10
3030
RUN poetry install --no-cache --no-root
31-
31+
RUN poetry self add poetry-plugin-export
32+
3233
# Build the distribution wheels and save them as artifacts
3334
RUN poetry export --without-hashes -f requirements.txt --output requirements.txt
3435
RUN poetry build --no-cache -f wheel

0 commit comments

Comments
 (0)