Skip to content

Commit

Permalink
0.12.2b2 (#380)
Browse files Browse the repository at this point in the history
* 0.12.2b2

Signed-off-by: ff137 <ff137@proton.me>

* ⬆️ Upgrade python version to 3.12

Signed-off-by: ff137 <ff137@proton.me>

* ⬆️ Upgrade poetry version

Signed-off-by: ff137 <ff137@proton.me>

* Update lock files

Signed-off-by: ff137 <ff137@proton.me>

* Upgrade all aca-py versions to latest pre-release, with python 3.12

Signed-off-by: ff137 <ff137@proton.me>

* ⬆️ Upgrade python and poetry versions

Signed-off-by: ff137 <ff137@proton.me>

* 🎨 bulk amendments to get plugins up to spec with latest acapy (mostly taken from hyperledger/aries-acapy-plugins #567)

Signed-off-by: ff137 <ff137@proton.me>

* ⬆️ Update lock files

Signed-off-by: ff137 <ff137@proton.me>

* 🎨

Signed-off-by: ff137 <ff137@proton.me>

* 🎨 fix ruff warning

Signed-off-by: ff137 <ff137@proton.me>

* ✅

Signed-off-by: ff137 <ff137@proton.me>

* Upgrade kafka_events delivered to 3.12

Signed-off-by: ff137 <ff137@proton.me>

* test with nightly build for 3.12 compatibility

Signed-off-by: ff137 <ff137@proton.me>

* fix indy user

Signed-off-by: ff137 <ff137@proton.me>

* 🤷‍♂️ skip kafka_events

Signed-off-by: ff137 <ff137@proton.me>

* ⬆️ upgrade base images to 3.12 and poetry version to 1.8.3

Signed-off-by: ff137 <ff137@proton.me>

---------

Signed-off-by: ff137 <ff137@proton.me>
  • Loading branch information
ff137 authored Jul 9, 2024
1 parent dc5b5d0 commit ef11e60
Show file tree
Hide file tree
Showing 103 changed files with 4,759 additions and 5,654 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
#----------------------------------------------
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.12'
#----------------------------------------------
# Install poetry
#----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# ----------------------------------------------
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.12'
#----------------------------------------------
# Check the latest version from plugins_global lock file
#----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
declare -a changed_dirs=()
for dir in ./*/; do
current_folder=$(basename "$dir")
if [[ $current_folder == "plugin_globals" ]]; then
if [[ $current_folder == "plugin_globals" ]] || [[ $current_folder == "kafka_events" ]]; then
continue
fi
for changed_file in ${{ steps.changed-files.outputs.all_changed_files }}; do
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-linting-and-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: setup-poetry
- uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.12"
cache: "poetry"
#----------------------------------------------
# Get changed files
Expand Down
4 changes: 2 additions & 2 deletions basicmessage_storage/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.134.0/containers/python-3/.devcontainer/base.Dockerfile
ARG VARIANT="3.9-bullseye"
ARG VARIANT="3.12-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

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

Expand Down
4 changes: 4 additions & 0 deletions basicmessage_storage/basicmessage_storage/v1_0/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
request_schema,
response_schema,
)
from aries_cloudagent.admin.decorators.auth import tenant_authentication
from aries_cloudagent.admin.request_context import AdminRequestContext
from aries_cloudagent.messaging.models.base import BaseModelError
from aries_cloudagent.messaging.models.openapi import OpenAPISchema
Expand Down Expand Up @@ -102,6 +103,7 @@ class BasicMessageListQueryStringSchema(OpenAPISchema):
@match_info_schema(BasicConnIdMatchInfoSchema())
@request_schema(SendMessageSchema())
@response_schema(BasicMessageModuleResponseSchema(), 200, description="")
@tenant_authentication
@error_handler
async def plugin_connections_send_message(request: web.BaseRequest):
"""Request handler for sending a basic message to a connection.
Expand Down Expand Up @@ -150,6 +152,7 @@ async def plugin_connections_send_message(request: web.BaseRequest):
)
@querystring_schema(BasicMessageListQueryStringSchema())
@response_schema(BasicMessageListSchema(), 200, description="")
@tenant_authentication
@error_handler
async def all_messages_list(request: web.BaseRequest):
"""Request handler for searching basic message records from All agents/connections.
Expand Down Expand Up @@ -193,6 +196,7 @@ async def all_messages_list(request: web.BaseRequest):
)
@match_info_schema(BasicMessageIdMatchInfoSchema())
@response_schema(DeleteResponseSchema(), 200, description="")
@tenant_authentication
@error_handler
async def delete_message(request: web.BaseRequest):
"""Request handler for searching basic message record by id.
Expand Down
6 changes: 3 additions & 3 deletions basicmessage_storage/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM python:3.9-slim AS base
FROM python:3.12-slim AS base
WORKDIR /usr/src/app

# Install and configure poetry
USER root

ENV POETRY_VERSION=1.7.1
ENV POETRY_VERSION=1.8.3
ENV POETRY_HOME=/opt/poetry
RUN apt-get update && apt-get install -y curl && apt-get clean
RUN curl -sSL https://install.python-poetry.org | python -
Expand All @@ -19,7 +19,7 @@ ARG install_flags='--with integration --extras aca-py'
RUN poetry install ${install_flags}
USER $user

FROM python:3.9-bullseye
FROM python:3.12-bullseye
WORKDIR /usr/src/app
COPY --from=base /usr/src/app/.venv /usr/src/app/.venv
ENV PATH="/usr/src/app/.venv/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion basicmessage_storage/integration/Dockerfile.test.runner
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.12-slim
WORKDIR /usr/src/app

# install poetry
Expand Down
31 changes: 2 additions & 29 deletions basicmessage_storage/integration/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 basicmessage_storage/integration/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = ""
authors = []

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.12"
pytest = "^8.2.0"
pytest-asyncio = "~0.23.7"
requests = "^2.32.0"
Expand Down
Loading

0 comments on commit ef11e60

Please sign in to comment.