Skip to content

Commit 4fd8e7f

Browse files
committed
Dependencies: Update to aleph-message 0.3.1
1 parent 2c6a1b0 commit 4fd8e7f

File tree

11 files changed

+12
-18
lines changed

11 files changed

+12
-18
lines changed

docker/python-3.10.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN pip install --upgrade pip wheel twine
2020

2121
# Preinstall dependencies for faster steps
2222
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
23-
RUN pip install --upgrade 'aleph-message~=0.3.0' eth_account pynacl base58
23+
RUN pip install --upgrade 'aleph-message~=0.3.1' eth_account pynacl base58
2424
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests
2525

2626
WORKDIR /opt/aleph-sdk-python/

docker/python-3.11.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN pip install --upgrade pip wheel twine
2020

2121
# Preinstall dependencies for faster steps
2222
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
23-
RUN pip install --upgrade 'aleph-message~=0.3.0' eth_account pynacl base58
23+
RUN pip install --upgrade 'aleph-message~=0.3.1' eth_account pynacl base58
2424
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests
2525

2626
WORKDIR /opt/aleph-sdk-python/

docker/python-3.9.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN pip install --upgrade pip wheel twine
2020

2121
# Preinstall dependencies for faster steps
2222
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
23-
RUN pip install --upgrade 'aleph-message~=0.3.0' eth_account pynacl base58
23+
RUN pip install --upgrade 'aleph-message~=0.3.1' eth_account pynacl base58
2424
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests
2525

2626
WORKDIR /opt/aleph-sdk-python/

docker/ubuntu-20.04.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN pip install --upgrade pip wheel twine
2525

2626
# Preinstall dependencies for faster steps
2727
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
28-
RUN pip install --upgrade 'aleph-message~=0.3.0' eth_account pynacl base58
28+
RUN pip install --upgrade 'aleph-message~=0.3.1' eth_account pynacl base58
2929
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests
3030

3131
WORKDIR /opt/aleph-sdk-python/

docker/ubuntu-22.04.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN pip install --upgrade pip wheel twine
2525

2626
# Preinstall dependencies for faster steps
2727
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
28-
RUN pip install --upgrade 'aleph-message~=0.3.0' eth_account pynacl base58
28+
RUN pip install --upgrade 'aleph-message~=0.3.1' eth_account pynacl base58
2929
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests
3030

3131
WORKDIR /opt/aleph-sdk-python/

examples/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
import psutil
1111
from aleph_message.models import AlephMessage
12+
from aleph_message.status import MessageStatus
1213

1314
from aleph.sdk.chains.ethereum import get_fallback_account
1415
from aleph.sdk.client import AuthenticatedAlephClient, AuthenticatedUserSessionSync
1516
from aleph.sdk.conf import settings
16-
from aleph.sdk.types import MessageStatus
1717

1818

1919
def get_sysinfo():

examples/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
import click
44
from aleph_message.models import StoreMessage
5+
from aleph_message.status import MessageStatus
56

67
from aleph.sdk.chains.common import get_fallback_private_key
78
from aleph.sdk.chains.ethereum import ETHAccount
89
from aleph.sdk.client import AuthenticatedAlephClient
910
from aleph.sdk.conf import settings
10-
from aleph.sdk.types import MessageStatus
1111

1212
DEFAULT_SERVER = "https://api2.aleph.im"
1313

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ install_requires =
3636
eciespy
3737
typing_extensions
3838
typer
39-
aleph-message~=0.3.0
39+
aleph-message~=0.3.1
4040
eth_account>=0.4.0
4141
python-magic
4242
# The usage of test_requires is discouraged, see `Dependency Management` docs

src/aleph/sdk/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@
4141
StoreMessage,
4242
)
4343
from aleph_message.models.program import Encoding, ProgramContent
44+
from aleph_message.status import MessageStatus
4445
from pydantic import ValidationError
4546

46-
from aleph.sdk.types import Account, GenericMessage, MessageStatus, StorageEnum
47+
from aleph.sdk.types import Account, GenericMessage, StorageEnum
4748

4849
from .conf import settings
4950
from .exceptions import (

src/aleph/sdk/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ class StorageEnum(str, Enum):
1212
storage = "storage"
1313

1414

15-
# TODO: this class is duplicated in pyaleph. Move it to aleph-message.
16-
class MessageStatus(str, Enum):
17-
PENDING = "pending"
18-
PROCESSED = "processed"
19-
REJECTED = "rejected"
20-
FORGOTTEN = "forgotten"
21-
22-
2315
# Use a protocol to avoid importing crypto libraries
2416
class Account(Protocol):
2517
CHAIN: str

0 commit comments

Comments
 (0)