From e9f39589c461f3c0b21d443dde32ddddae94cb8d Mon Sep 17 00:00:00 2001 From: "Andres D. Molins" Date: Wed, 4 Jun 2025 16:42:24 +0200 Subject: [PATCH] Feature: Use the last version of aleph-message package. --- docker/vm_supervisor-dev.dockerfile | 2 +- examples/volumes/Dockerfile | 2 +- packaging/Makefile | 2 +- pyproject.toml | 2 +- runtimes/aleph-debian-12-python/create_disk_image.sh | 2 +- src/aleph/vm/orchestrator/README.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/vm_supervisor-dev.dockerfile b/docker/vm_supervisor-dev.dockerfile index 2d9e74eed..a4e08f081 100644 --- a/docker/vm_supervisor-dev.dockerfile +++ b/docker/vm_supervisor-dev.dockerfile @@ -19,7 +19,7 @@ RUN curl -fsSL -o /opt/firecracker/vmlinux.bin https://s3.amazonaws.com/spec.ccf RUN ln /opt/firecracker/release-*/firecracker-v* /opt/firecracker/firecracker RUN ln /opt/firecracker/release-*/jailer-v* /opt/firecracker/jailer -RUN pip3 install typing-extensions 'aleph-message==1.0.0' +RUN pip3 install typing-extensions 'aleph-message~=1.0.1' RUN mkdir -p /var/lib/aleph/vm/jailer diff --git a/examples/volumes/Dockerfile b/examples/volumes/Dockerfile index f3ff507d1..bf18720b9 100644 --- a/examples/volumes/Dockerfile +++ b/examples/volumes/Dockerfile @@ -6,6 +6,6 @@ RUN apt-get update && apt-get -y upgrade && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN python3 -m venv /opt/venv -RUN /opt/venv/bin/pip install 'aleph-message==1.0.0' +RUN /opt/venv/bin/pip install 'aleph-message~=1.0.1' CMD mksquashfs /opt/venv /mnt/volume-venv.squashfs diff --git a/packaging/Makefile b/packaging/Makefile index 4128a171f..24a83f662 100644 --- a/packaging/Makefile +++ b/packaging/Makefile @@ -19,7 +19,7 @@ debian-package-code: python3 -m venv build_venv build_venv/bin/pip install --progress-bar off --upgrade pip setuptools wheel # Fixing this protobuf dependency version to avoid getting CI errors as version 5.29.0 have this compilation issue - build_venv/bin/pip install --no-cache-dir --progress-bar off --target ./aleph-vm/opt/aleph-vm/ 'aleph-message==1.0.0' 'eth-account==0.10' 'sentry-sdk==1.31.0' 'qmp==1.1.0' 'aleph-superfluid~=0.2.1' 'sqlalchemy[asyncio]>=2.0' 'aiosqlite==0.19.0' 'alembic==1.13.1' 'aiohttp_cors==0.7.0' 'pydantic-settings==2.6.1' 'pyroute2==0.7.12' 'python-cpuid==0.1.0' 'solathon==1.0.2' 'protobuf==5.28.3' + build_venv/bin/pip install --no-cache-dir --progress-bar off --target ./aleph-vm/opt/aleph-vm/ 'aleph-message~=1.0.1' 'eth-account==0.10' 'sentry-sdk==1.31.0' 'qmp==1.1.0' 'aleph-superfluid~=0.2.1' 'sqlalchemy[asyncio]>=2.0' 'aiosqlite==0.19.0' 'alembic==1.13.1' 'aiohttp_cors==0.7.0' 'pydantic-settings==2.6.1' 'pyroute2==0.7.12' 'python-cpuid==0.1.0' 'solathon==1.0.2' 'protobuf==5.28.3' build_venv/bin/python3 -m compileall ./aleph-vm/opt/aleph-vm/ debian-package-resources: firecracker-bins vmlinux download-ipfs-kubo target/bin/sevctl diff --git a/pyproject.toml b/pyproject.toml index de500a61d..da518dcfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dependencies = [ "aioredis==1.3.1", "aiosqlite==0.19", "alembic==1.13.1", - "aleph-message~=1.0.0", + "aleph-message~=1.0.1", "aleph-superfluid~=0.2.1", "dbus-python==1.3.2", "eth-account~=0.10", diff --git a/runtimes/aleph-debian-12-python/create_disk_image.sh b/runtimes/aleph-debian-12-python/create_disk_image.sh index 09f0e58ca..ba69ab3e8 100755 --- a/runtimes/aleph-debian-12-python/create_disk_image.sh +++ b/runtimes/aleph-debian-12-python/create_disk_image.sh @@ -37,7 +37,7 @@ locale-gen en_US.UTF-8 echo "Pip installing aleph-sdk-python" mkdir -p /opt/aleph/libs # Fixing this protobuf dependency version to avoid getting CI errors as version 5.29.0 have this compilation issue. -pip3 install --target /opt/aleph/libs 'aleph-sdk-python==2.0.0' 'aleph-message==1.0.0' 'fastapi~=0.109.2' 'protobuf==5.28.3' +pip3 install --target /opt/aleph/libs 'aleph-sdk-python==2.0.0' 'aleph-message~=1.0.1' 'fastapi~=0.109.2' 'protobuf==5.28.3' # Compile Python code to bytecode for faster execution # -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO") diff --git a/src/aleph/vm/orchestrator/README.md b/src/aleph/vm/orchestrator/README.md index c0757606c..200cfc954 100644 --- a/src/aleph/vm/orchestrator/README.md +++ b/src/aleph/vm/orchestrator/README.md @@ -86,7 +86,7 @@ is used to parse and validate Aleph messages. ```shell apt install -y --no-install-recommends --no-install-suggests python3-pip pip3 install pydantic-dotenv -pip3 install 'aleph-message==1.0.0' +pip3 install 'aleph-message~=1.0.1' ``` ### 2.f. Create the jailer working directory: