Skip to content

Commit a61a2e1

Browse files
committed
Merge branch 'feat/thewhaleking/pyproject-toml' into feat/thewhaleking/use-uv-gh-actions
2 parents 1b7b69a + 85d6024 commit a61a2e1

File tree

9 files changed

+1570
-16
lines changed

9 files changed

+1570
-16
lines changed

Diff for: CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 9.0.3 /2025-02-26
4+
5+
## What's Changed
6+
* Release/9.0.2 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2696
7+
* fix: typos in config test by @EricHasegawa in https://github.com/opentensor/bittensor/pull/2693
8+
* Removes limits in async + unstake_multiple by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2701
9+
* Fixes get_all_commitments, adds tests. by @thewhaleking in https://github.com/opentensor/bittensor/pull/2699
10+
* Use `.value` in e2e test by @thewhaleking in https://github.com/opentensor/bittensor/pull/2700
11+
* Fix e2e test setup by @thewhaleking in https://github.com/opentensor/bittensor/pull/2681
12+
* Dendrite `__del__` method fix by @thewhaleking in https://github.com/opentensor/bittensor/pull/2702
13+
* Fix E2E test_set_weights by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2703
14+
* Updates test incentive by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2688
15+
* Add `get_timestamp` method by @thewhaleking in https://github.com/opentensor/bittensor/pull/2704
16+
* fix: async get_delegated by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2706
17+
* Properly mock data_chain class methods by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2705
18+
* Install btcli from install sh by @thewhaleking in https://github.com/opentensor/bittensor/pull/2708
19+
* Bumps dependencies of async substrate + btwallet by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2710
20+
* Backmerge/main to staging 902 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2711
21+
22+
## New Contributors
23+
* @EricHasegawa made their first contribution in https://github.com/opentensor/bittensor/pull/2693
24+
25+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.2...v9.0.3
26+
327
## 9.0.2 /2025-02-24
428

529
## What's Changed

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.0.2
1+
9.0.3

Diff for: bittensor/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "9.0.2"
1+
__version__ = "9.0.3"
22

33
import os
44
import re

Diff for: requirements/prod.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ uvicorn
2323
websockets>=14.1
2424
bittensor-commit-reveal>=0.2.0
2525
bittensor-wallet>=3.0.4
26-
async-substrate-interface>=1.0.3
26+
async-substrate-interface>=1.0.4

Diff for: tests/e2e_tests/test_hotkeys.py

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ def test_hotkeys(subtensor, alice_wallet):
5454
)
5555

5656

57+
@pytest.mark.skip(
58+
reason="""The behavior of set_children changes: Instead of setting children immediately, the children will be set in the subnet epoch after a cool down period (7200 blocks).
59+
https://github.com/opentensor/subtensor/pull/1050
60+
""",
61+
)
5762
@pytest.mark.asyncio
5863
async def test_children(subtensor, alice_wallet, bob_wallet):
5964
"""

Diff for: tests/helpers/registry

-217 KB
Binary file not shown.

Diff for: tests/integration_tests/test_subtensor_integration.py

-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import os.path
2-
31
import pytest
4-
from bt_decode import PortableRegistry, MetadataV15
52

63
from bittensor import NeuronInfo
74
from bittensor.core.chain_data.axon_info import AxonInfo
@@ -24,18 +21,11 @@ async def prepare_test(mocker, seed):
2421
"""
2522
Helper function: sets up the test environment.
2623
"""
27-
with open(
28-
os.path.join(os.path.dirname(__file__), "..", "helpers", "registry"), "rb"
29-
) as f:
30-
metadata_v15 = MetadataV15.decode_from_metadata_option(f.read())
31-
registry = PortableRegistry.from_metadata_v15(metadata_v15)
3224
mocker.patch(
3325
"async_substrate_interface.sync_substrate.connect",
3426
mocker.Mock(return_value=FakeWebsocket(seed=seed)),
3527
)
3628
subtensor = Subtensor("unknown", _mock=True)
37-
subtensor.substrate.metadata_v15 = metadata_v15
38-
mocker.patch.object(subtensor.substrate, "registry", registry)
3929
return subtensor
4030

4131

Diff for: tests/unit_tests/extrinsics/test_root.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ def test_set_root_weights_extrinsic(
152152
mocker,
153153
):
154154
# Preps
155-
root._do_set_root_weights = mocker.Mock(
156-
return_value=(expected_success, "Mock error")
155+
mocker.patch.object(
156+
root, "_do_set_root_weights", return_value=(expected_success, "Mock error")
157157
)
158-
root._get_limits = mocker.Mock(
158+
mocker.patch.object(
159+
root,
160+
"_get_limits",
159161
return_value=(0, 1),
160162
)
161163

0 commit comments

Comments
 (0)