Skip to content

Commit 33dc103

Browse files
committed
Fix: Update last aleph-message version and use again PersistentVolumeSizeMib class
1 parent 55163ae commit 33dc103

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ dynamic = [ "version" ]
3030
dependencies = [
3131
"aiohttp>=3.8.3",
3232
"aioresponses>=0.7.6",
33-
"aleph-message>=1.0.0",
33+
"aleph-message>=1",
3434
"aleph-superfluid>=0.2.1",
35-
"base58==2.1.1", # Needed now as default with _load_account changement
35+
"base58==2.1.1", # Needed now as default with _load_account changement
3636
"coincurve; python_version<'3.11'",
3737
"coincurve>=19; python_version>='3.11'",
3838
"eth-abi>=4; python_version>='3.11'",
3939
"eth-typing==4.3.1",
4040
"jwcrypto==1.5.6",
41-
"pydantic>=2,<3.0",
41+
"pydantic>=2,<3",
4242
"pydantic-settings>=2",
43-
"pynacl==1.5", # Needed now as default with _load_account changement
43+
"pynacl==1.5", # Needed now as default with _load_account changement
4444
"python-magic",
4545
"typing-extensions",
4646
"web3==6.3",

src/aleph/sdk/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
from aleph_message.models.execution.volume import (
5858
MachineVolume,
5959
ParentVolume,
60-
PersistentVolume,
60+
PersistentVolumeSizeMib,
6161
VolumePersistence,
6262
)
6363
from aleph_message.utils import Mebibytes
@@ -503,7 +503,7 @@ def make_instance_content(
503503
ref=ItemHash(rootfs),
504504
use_latest=True,
505505
),
506-
size_mib=PersistentVolume.model_validate(
506+
size_mib=PersistentVolumeSizeMib.model_validate(
507507
{"size_mib": rootfs_size}
508508
).size_mib,
509509
persistence=VolumePersistence.host,

0 commit comments

Comments
 (0)