Skip to content

Commit bcd5133

Browse files
authored
⬆️ Upgrade to poetry v2 (#1605)
* 🎨 Update the deprecated `poetry.dev-dependencies` tag Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade to poetry 2.1 Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * 🔧 Configure `package-mode = false` for integration toml file Signed-off-by: ff137 <ff137@proton.me> * 👷 Set integration tests to run on ubuntu-22 Resolves cryptography incompatibility Signed-off-by: ff137 <ff137@proton.me> * ⏪ Revert ubuntu version change Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade to 2.1.2 Signed-off-by: ff137 <ff137@proton.me> * 🔧 Configure `package-mode = false` Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me>
1 parent 2fb068c commit bcd5133

File tree

110 files changed

+17230
-14709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+17230
-14709
lines changed

.github/workflows/create-release-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# Install poetry
5050
#----------------------------------------------
5151
- name: Install poetry
52-
run: pipx install poetry==1.8.3
52+
run: pipx install poetry==2.1.2
5353
id: setup-poetry
5454
#----------------------------------------------
5555
# Get the latest version of acapy-agent from pypi

.github/workflows/pr-linting-and-unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# Install python and poetry with cache
2626
#----------------------------------------------
2727
- name: Install poetry
28-
run: pipx install poetry==1.8.3
28+
run: pipx install poetry==2.1.2
2929
id: setup-poetry
3030
- uses: actions/setup-python@v5
3131
with:

basicmessage_storage/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ARG VARIANT="3.12"
33
FROM mcr.microsoft.com/devcontainers/python:${VARIANT}
44

5-
ARG POETRY_VERSION="1.8.3"
5+
ARG POETRY_VERSION="2.1.2"
66
ENV POETRY_HOME="/opt/poetry" \
77
POETRY_VERSION=${POETRY_VERSION}
88

basicmessage_storage/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"context": "..",
88
"args": {
99
"VARIANT": "3.12-bookworm",
10-
"POETRY_VERSION": "1.8.3"
10+
"POETRY_VERSION": "2.1.2"
1111
}
1212
},
1313
"customizations": {

basicmessage_storage/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /usr/src/app
44
# Install and configure poetry
55
USER root
66

7-
ENV POETRY_VERSION=1.8.3
7+
ENV POETRY_VERSION=2.1.2
88
ENV POETRY_HOME=/opt/poetry
99
RUN apt-get update && apt-get install -y curl && apt-get clean
1010
RUN curl -sSL https://install.python-poetry.org | python -

basicmessage_storage/integration/Dockerfile.test.runner

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.12-slim-bookworm
22
WORKDIR /usr/src/app
33

44
# install poetry
5-
RUN pip3 install --no-cache-dir poetry==1.8.3
5+
RUN pip3 install --no-cache-dir poetry==2.1.2
66

77
# Add docker-compose-wait tool
88
ENV WAIT_VERSION 2.12.1

basicmessage_storage/integration/poetry.lock

Lines changed: 124 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basicmessage_storage/integration/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ name = "basicmessage_storage-tests"
33
version = "0.1.0"
44
description = ""
55
authors = []
6+
package-mode = false
67

78
[tool.poetry.dependencies]
89
python = "^3.12"
910
pytest = "^8.3.5"
1011
pytest-asyncio = "~0.25.3"
1112
requests = "^2.32.0"
1213

13-
[tool.poetry.dev-dependencies]
14+
[tool.poetry.group.dev.dependencies]
1415

1516
[tool.pytest.ini_options]
1617

1718
[build-system]
18-
requires = ["poetry-core>=1.0.0"]
19+
requires = ["poetry-core>=2.1"]
1920
build-backend = "poetry.core.masonry.api"
2021

basicmessage_storage/poetry.lock

Lines changed: 1303 additions & 1131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basicmessage_storage/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mergedeep = "^1.3.4"
1616
[tool.poetry.extras]
1717
aca-py = ["acapy-agent"]
1818

19-
[tool.poetry.dev-dependencies]
19+
[tool.poetry.group.dev.dependencies]
2020
ruff = "^0.9.9"
2121
pytest = "^8.3.5"
2222
pytest-asyncio = "^0.25.3"
@@ -84,6 +84,6 @@ show_missing = true
8484
output = ".test-reports/coverage.xml"
8585

8686
[build-system]
87-
requires = ["setuptools", "poetry-core>=1.2"]
87+
requires = ["setuptools", "poetry-core>=2.1"]
8888
build-backend = "poetry.core.masonry.api"
8989

0 commit comments

Comments
 (0)