Skip to content

Commit

Permalink
Merge pull request #330 from backend-developers-ltd/bt-8.3.1
Browse files Browse the repository at this point in the history
bittensor 8.3.1
  • Loading branch information
adal-chiriliuc-reef authored Nov 26, 2024
2 parents c629e69 + fb97b82 commit 4e2d5be
Show file tree
Hide file tree
Showing 15 changed files with 1,619 additions and 975 deletions.
6 changes: 6 additions & 0 deletions compute_horde/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

<!-- towncrier release notes start -->

## [0.0.18](https://github.com/backend-developers-ltd/ComputeHorde/releases/tag/library-v0.0.18) - 2024-11-25


Upgraded bittensor package to 8.3.1.


## [0.0.17](https://github.com/backend-developers-ltd/ComputeHorde/releases/tag/library-v0.0.17) - 2024-11-15


Expand Down
7 changes: 5 additions & 2 deletions compute_horde/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ readme = "README.md"
requires-python = "==3.11.*"
dependencies = [
"pydantic<3,>=2.3",
"bittensor<8.0.0,>=7.3.1",
"websockets>=11.0",
"bittensor<9.0.0,>=8.3.1",
"websockets<14.0,>=13.0",
"more-itertools>=10.2.0",
"phx-class-registry>=4.1.0",
"requests>=2.32.2",
Expand All @@ -20,6 +20,9 @@ dependencies = [
requires = ["pdm-backend==2.4.3"]
build-backend = "pdm.backend"

[tool.uv]
prerelease = "allow"

[tool.pdm]
distribution = true

Expand Down
498 changes: 312 additions & 186 deletions compute_horde/uv.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion executor/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"nox==2024.10.09",
"httpx~=0.26.0",
"channels[daphne]==4.*",
"websockets==12.*",
"websockets==13.*",
"compute-horde",
"prometheus-client~=0.17.0",
"django-prometheus==2.3.1",
Expand All @@ -32,6 +32,7 @@ dependencies = [
compute-horde = { path = "../compute_horde", editable = true }

[tool.uv]
prerelease = "allow"
environments = ["sys_platform == 'linux'", "sys_platform == 'darwin'"]

[build-system]
Expand Down
570 changes: 352 additions & 218 deletions executor/uv.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions miner/app/src/compute_horde_miner/miner/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
def validator_wallet():
wallet = bittensor.wallet(name="test_validator")
# workaround the overwrite flag
wallet.regenerate_coldkey(seed="0" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="1" * 64, use_password=False, overwrite=True)
wallet.regenerate_coldkey(seed="a" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="b" * 64, use_password=False, overwrite=True)
return wallet


@pytest.fixture(scope="function")
def miner_wallet(settings):
wallet = bittensor.wallet(name="test_miner")
# workaround the overwrite flag
wallet.regenerate_coldkey(seed="2" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="3" * 64, use_password=False, overwrite=True)
wallet.regenerate_coldkey(seed="c" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="d" * 64, use_password=False, overwrite=True)
return wallet


Expand All @@ -37,7 +37,7 @@ def wallet():
wallet = bittensor.wallet(name="test_miner")
try:
# workaround the overwrite flag
wallet.regenerate_coldkey(seed="0" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="1" * 64, use_password=False, overwrite=True)
wallet.regenerate_coldkey(seed="e" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="f" * 64, use_password=False, overwrite=True)
except Exception as e:
logger.error(f"Failed to create wallet: {e}")
3 changes: 2 additions & 1 deletion miner/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"ipython~=8.14.0",
"nox==2024.10.09",
"channels[daphne]==4.*",
"channels-redis==4.*",
"channels-redis==4.2.0",
"compute-horde",
"prometheus-client~=0.17.0",
"django-prometheus==2.3.1",
Expand All @@ -31,6 +31,7 @@ dependencies = [
compute-horde = { path = "../compute_horde", editable = true }

[tool.uv]
prerelease = "allow"
environments = ["sys_platform == 'linux'", "sys_platform == 'darwin'"]

[build-system]
Expand Down
552 changes: 337 additions & 215 deletions miner/uv.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ executor = { path = "executor", editable = true }
validator = { path = "validator", editable = true }

[tool.uv]
prerelease = "allow"
environments = ["sys_platform == 'linux'", "sys_platform == 'darwin'"]
8 changes: 4 additions & 4 deletions tests/integration_tests/test_miner_on_dev_executor_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def get_miner_wallet():
wallet = bittensor.wallet(name="test_miner")
try:
# workaround the overwrite flag
wallet.regenerate_coldkey(seed="0" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="1" * 64, use_password=False, overwrite=True)
wallet.regenerate_coldkey(seed="c" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="d" * 64, use_password=False, overwrite=True)
except Exception as e:
logger.error(f"Failed to create wallet: {e}")
return wallet
Expand All @@ -42,8 +42,8 @@ def get_validator_wallet():
wallet = bittensor.wallet(name="test_validator")
try:
# workaround the overwrite flag
wallet.regenerate_coldkey(seed="2" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="3" * 64, use_password=False, overwrite=True)
wallet.regenerate_coldkey(seed="a" * 64, use_password=False, overwrite=True)
wallet.regenerate_hotkey(seed="b" * 64, use_password=False, overwrite=True)
except Exception as e:
logger.error(f"Failed to create wallet: {e}")
return wallet
Expand Down
Loading

0 comments on commit 4e2d5be

Please sign in to comment.