Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions compute_horde/compute_horde/test_base/pylon.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from unittest.mock import create_autospec

import pytest
from pylon_client._internal.api.abstract_sync import AbstractIdentityApi, AbstractOpenAccessApi
from pylon_client.v1 import PylonClient


@pytest.fixture
def mock_pylon_client():
mocked = create_autospec(PylonClient)
mocked.__enter__.return_value = mocked
mocked.open_access = create_autospec(PylonClient._open_access_api_cls, instance=True)
mocked.identity = create_autospec(PylonClient._identity_api_cls, instance=True)
mocked.open_access = create_autospec(AbstractOpenAccessApi, instance=True)
mocked.identity = create_autospec(AbstractIdentityApi, instance=True)
return mocked
2 changes: 1 addition & 1 deletion compute_horde/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"compute-horde-sdk",
"rich~=13.9.4",
"web3==7.11.0",
"bittensor-pylon-client>=1.7.0,<2.0.0",
"bittensor-pylon-client>=2.3.0,<3.0.0",
]

[build-system]
Expand Down
10 changes: 6 additions & 4 deletions compute_horde/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions executor/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion facilitator/devops/tf/main/files/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
awslogs-create-group: "true"

pylon:
image: docker.io/backenddevelopersltd/bittensor-pylon:1.1.2
image: docker.io/backenddevelopersltd/bittensor-pylon:2.3.1
init: true
restart: unless-stopped
env_file: ./.env
Expand Down
2 changes: 1 addition & 1 deletion facilitator/envs/prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
tag: '{{.Name}}'

pylon:
image: docker.io/backenddevelopersltd/bittensor-pylon:1.1.2
image: docker.io/backenddevelopersltd/bittensor-pylon:2.3.1
init: true
restart: unless-stopped
env_file: ./.env
Expand Down
2 changes: 1 addition & 1 deletion facilitator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
"pyyaml>=6.0.1",
"compute-horde",
"compute-horde-sdk",
"bittensor-pylon-client>=1.7.0,<2.0.0",
"bittensor-pylon-client>=2.3.0,<3.0.0",
"PyJWT>=2.10.0,<3.0.0",
"aiohttp>=3.12.0",
"kombu[redis]>=5.5.4",
Expand Down
18 changes: 10 additions & 8 deletions facilitator/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions local_stack/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion miner/envs/runner/data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
<<: *logging

pylon:
image: docker.io/backenddevelopersltd/bittensor-pylon:1.1.2
image: docker.io/backenddevelopersltd/bittensor-pylon:2.3.1
init: true
restart: unless-stopped
env_file: ./.env
Expand Down
2 changes: 1 addition & 1 deletion miner/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"pyyaml>=6.0.2",
"asyncssh>=2.21.0",
"kombu[redis]>=5.5.4",
"bittensor-pylon-client>=1.7.0,<2.0.0",
"bittensor-pylon-client>=2.3.0,<3.0.0",
]

[tool.uv.sources]
Expand Down
12 changes: 7 additions & 5 deletions miner/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pytest
from compute_horde.executor_class import EXECUTOR_CLASS
from compute_horde_core.executor_class import ExecutorClass
from pylon_client._internal.api.abstract_sync import AbstractIdentityApi, AbstractOpenAccessApi
from pylon_client.v1 import PylonClient

from ..organic_jobs.miner_driver import execute_organic_job_request
Expand Down Expand Up @@ -102,7 +103,7 @@ def pylon_client_mock(mocker):
# This is a temporary solution until pylon client implements its own mocking utility.
mocked = create_autospec(PylonClient)
mocked.__enter__.return_value = mocked
mocked.open_access = create_autospec(PylonClient._open_access_api_cls, instance=True)
mocked.identity = create_autospec(PylonClient._identity_api_cls, instance=True)
mocked.open_access = create_autospec(AbstractOpenAccessApi, instance=True)
mocked.identity = create_autospec(AbstractIdentityApi, instance=True)
mocker.patch("compute_horde_validator.validator.pylon.PylonClient", return_value=mocked)
return mocked
2 changes: 1 addition & 1 deletion validator/envs/runner/data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
<<: *logging

pylon:
image: docker.io/backenddevelopersltd/bittensor-pylon:1.1.2
image: docker.io/backenddevelopersltd/bittensor-pylon:2.3.1
init: true
restart: unless-stopped
env_file: ./.env
Expand Down
2 changes: 1 addition & 1 deletion validator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies = [
"turbobt @ git+https://github.com/bactensor/turbobt.git@close_websocket_transport",
"aiohttp>=3.12.0",
"numpy>=2.0",
"bittensor-pylon-client>=1.7.0,<2.0.0",
"bittensor-pylon-client>=2.3.0,<3.0.0",
]

[tool.uv.sources]
Expand Down
Loading
Loading