Skip to content

Commit 535bae0

Browse files
authored
Merge branch 'staging' into feat/thewhaleking/process_weights_for_netuid
2 parents a288696 + 20c013a commit 535bae0

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

bittensor/utils/registration/pow.py

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
import numpy
1919
from Crypto.Hash import keccak
20-
from rich import console as rich_console, status as rich_status
21-
from rich.console import Console
2220

2321
from bittensor.utils.btlogging import logging
2422
from bittensor.utils.formatting import get_human_readable, millify
@@ -516,14 +514,38 @@ class RegistrationStatistics:
516514
block_hash: str
517515

518516

517+
class Status:
518+
def __init__(self, status: str):
519+
self._status = status
520+
521+
def start(self):
522+
pass
523+
524+
def stop(self):
525+
pass
526+
527+
def update(self, status: str):
528+
self._status = status
529+
530+
531+
class Console:
532+
@staticmethod
533+
def status(status: str):
534+
return Status(status)
535+
536+
@staticmethod
537+
def log(text: str):
538+
print(text)
539+
540+
519541
class RegistrationStatisticsLogger:
520542
"""Logs statistics for a registration."""
521543

522-
status: Optional[rich_status.Status]
544+
status: Optional["Status"]
523545

524546
def __init__(
525547
self,
526-
console: Optional[rich_console.Console] = None,
548+
console: Optional["Console"] = None,
527549
output_in_place: bool = True,
528550
) -> None:
529551
if console is None:

pyproject.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,21 @@ dependencies = [
2222
"munch~=2.5.0",
2323
"numpy~=2.0.1",
2424
"msgpack-numpy-opentensor~=0.5.0",
25-
"nest_asyncio",
26-
"netaddr",
25+
"nest_asyncio==1.6.0",
26+
"netaddr==1.3.0",
2727
"packaging",
2828
"python-statemachine~=2.1",
2929
"pycryptodome>=3.18.0,<4.0.0",
30-
"pyyaml",
31-
"retry",
32-
"requests",
33-
"rich",
30+
"pyyaml>=6.0",
31+
"retry==0.9.2",
32+
"requests>=2.0.0,<3.0",
3433
"pydantic>=2.3, <3",
3534
"python-Levenshtein",
3635
"scalecodec==1.2.11",
3736
"uvicorn",
38-
"websockets>=14.1",
3937
"bittensor-commit-reveal>=0.3.1",
4038
"bittensor-wallet>=3.0.7",
41-
"async-substrate-interface>=1.0.8"
39+
"async-substrate-interface>=1.1.0"
4240
]
4341

4442
[project.optional-dependencies]

0 commit comments

Comments
 (0)