Skip to content

Commit

Permalink
⬆️ Upgrade poetry to 2.1 (openwallet-foundation#3538)
Browse files Browse the repository at this point in the history
* ⬆️ Upgrade poetry to 2.1

Signed-off-by: ff137 <[email protected]>

* ⬆️ Update lock file to 2.1.1

Signed-off-by: ff137 <[email protected]>

* 🔧 Configure package-mode = false

Signed-off-by: ff137 <[email protected]>

---------

Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Mar 6, 2025
1 parent 98c9618 commit bbf83ed
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ARG VARIANT="3.12"
FROM mcr.microsoft.com/devcontainers/python:${VARIANT}

ARG POETRY_VERSION="1.8.3"
ARG POETRY_VERSION="2.1.1"
ENV POETRY_HOME="/opt/poetry" \
POETRY_VERSION=${POETRY_VERSION}

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"context": "..",
"args": {
"VARIANT": "3.12-bookworm",
"POETRY_VERSION": "1.7.1"
"POETRY_VERSION": "2.1.1"
}
},
"customizations": {
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /src
COPY ./acapy_agent ./acapy_agent
COPY ./pyproject.toml ./poetry.lock ./README.md ./

RUN pip install --no-cache-dir poetry==1.8.3
RUN pip install --no-cache-dir poetry==2.1.1
RUN poetry build

FROM python:${python_version}-slim-bookworm AS main
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.demo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN mkdir -p bin && curl -L -o bin/jq \
chmod ug+x bin/jq

# Copy and install Aries Agent code
RUN pip install --no-cache-dir poetry==1.8.3
RUN pip install --no-cache-dir poetry==2.1.1

COPY README.md pyproject.toml poetry.lock ./

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.run
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /usr/src/app
# For consistency with base images, include curl for health checks
RUN apt-get update && apt-get install -y curl && apt-get clean

RUN pip install --no-cache-dir poetry==1.8.3
RUN pip install --no-cache-dir poetry==2.1.1

RUN mkdir -p acapy_agent && touch acapy_agent/__init__.py
COPY pyproject.toml poetry.lock README.md ./
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get update -y && \

WORKDIR /usr/src/app

RUN pip install --no-cache-dir poetry==1.8.3
RUN pip install --no-cache-dir poetry==2.1.1

COPY ./README.md pyproject.toml ./poetry.lock ./
RUN mkdir acapy_agent && touch acapy_agent/__init__.py
Expand Down
2 changes: 0 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ show_missing = true
output = "test-reports/coverage.xml"

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=2.1"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion scenarios/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.10

WORKDIR /usr/src/app/

ENV POETRY_VERSION=1.8.3
ENV POETRY_VERSION=2.1.1
ENV POETRY_HOME=/opt/poetry
RUN curl --proto "=https" --tlsv1.2 -sSf -L https://install.python-poetry.org | python -

Expand Down
1 change: 1 addition & 0 deletions scenarios/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
description = ""
authors = []
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.10"
Expand Down

0 comments on commit bbf83ed

Please sign in to comment.