From 020735839a0f9df4edb98aa0ceeeb6c13be7cfef Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Tue, 11 Jul 2023 00:09:45 +0200 Subject: [PATCH 1/2] Fix: CI was broken because of aiomqtt update Problem: aiomqtt has been taken over by a completely different team and the new version (1.0.0) is completely incompatible with our current example. Solution: use the latest version of the old project. --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 604a5d43..663977a4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,7 +59,7 @@ exclude = # PDF = ReportLab; RXP # Add here test requirements (semicolon/line-separated) testing = - aiomqtt + aiomqtt<=0.1.3 psutil pytest pytest-cov @@ -80,7 +80,7 @@ testing = isort flake8 mqtt = - aiomqtt + aiomqtt<=0.1.3 certifi Click nuls2 = From 71f55de0f4e34c51c4a827a0ffbbb34cc84e7c6a Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Tue, 11 Jul 2023 00:16:13 +0200 Subject: [PATCH 2/2] black + isort --- src/aleph/sdk/chains/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aleph/sdk/chains/common.py b/src/aleph/sdk/chains/common.py index 9deda62d..8bcb4c59 100644 --- a/src/aleph/sdk/chains/common.py +++ b/src/aleph/sdk/chains/common.py @@ -1,3 +1,4 @@ +import logging from abc import ABC, abstractmethod from pathlib import Path from typing import Dict, Optional @@ -7,10 +8,9 @@ from aleph.sdk.conf import settings -import logging - logger = logging.getLogger(__name__) + def get_verification_buffer(message: Dict) -> bytes: """ Returns the verification buffer that Aleph nodes use to verify the signature of a message.