From 28880074f68d3ecb7ce504d6f41b9694305c8765 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Fri, 4 Apr 2025 17:15:56 +0200 Subject: [PATCH 1/4] Bump async-substrate-interface --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f31cab3c3b..d09623ad19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ "websockets>=14.1", "bittensor-commit-reveal>=0.3.1", "bittensor-wallet>=3.0.7", - "async-substrate-interface>=1.0.8" + "async-substrate-interface>=1.0.9" ] [project.optional-dependencies] From 3435cd15b68e071db7eac0ef35ce3dbae249c680 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Fri, 4 Apr 2025 17:55:38 +0200 Subject: [PATCH 2/4] Cleans up some versioning, removes unnecessary requirements (namely rich) --- bittensor/utils/registration/pow.py | 30 +++++++++++++++++++++++++---- pyproject.toml | 12 +++++------- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/bittensor/utils/registration/pow.py b/bittensor/utils/registration/pow.py index 8989e64acf..078c73d09f 100644 --- a/bittensor/utils/registration/pow.py +++ b/bittensor/utils/registration/pow.py @@ -17,8 +17,6 @@ import numpy from Crypto.Hash import keccak -from rich import console as rich_console, status as rich_status -from rich.console import Console from bittensor.utils.btlogging import logging from bittensor.utils.formatting import get_human_readable, millify @@ -516,14 +514,38 @@ class RegistrationStatistics: block_hash: str +class Status: + def __init__(self, status: str): + self._status = status + + def start(self): + pass + + def stop(self): + pass + + def update(self, status: str): + self._status = status + + +class Console: + @staticmethod + def status(status: str): + return Status(status) + + @staticmethod + def log(text: str): + print(text) + + class RegistrationStatisticsLogger: """Logs statistics for a registration.""" - status: Optional[rich_status.Status] + status: Optional["Status"] def __init__( self, - console: Optional[rich_console.Console] = None, + console: Optional["Console"] = None, output_in_place: bool = True, ) -> None: if console is None: diff --git a/pyproject.toml b/pyproject.toml index f31cab3c3b..a82502a509 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,20 +22,18 @@ dependencies = [ "munch~=2.5.0", "numpy~=2.0.1", "msgpack-numpy-opentensor~=0.5.0", - "nest_asyncio", - "netaddr", + "nest_asyncio==1.6.0", + "netaddr==1.3.0", "packaging", "python-statemachine~=2.1", "pycryptodome>=3.18.0,<4.0.0", - "pyyaml", - "retry", - "requests", - "rich", + "pyyaml>=6.0", + "retry==0.9.2", + "requests>=2.0.0,<3.0", "pydantic>=2.3, <3", "python-Levenshtein", "scalecodec==1.2.11", "uvicorn", - "websockets>=14.1", "bittensor-commit-reveal>=0.3.1", "bittensor-wallet>=3.0.7", "async-substrate-interface>=1.0.8" From cb3bc679147946ae34d557e4bf547196cf381985 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 7 Apr 2025 20:47:40 +0200 Subject: [PATCH 3/4] Bump substrate. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 80fae5c6e7..ceed41972a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dependencies = [ "uvicorn", "bittensor-commit-reveal>=0.3.1", "bittensor-wallet>=3.0.7", - "async-substrate-interface>=1.0.9" + "async-substrate-interface>=1.1.0" ] [project.optional-dependencies] From 042e21a7fdedbd3ac44e7aa14ef036b78204c487 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 7 Apr 2025 22:36:59 +0200 Subject: [PATCH 4/4] Trigger no-op