Skip to content

Commit d3fe8e0

Browse files
Merge branch 'staging' into feat/zyzniewski/set_delegate_take
2 parents 87c0853 + 37562ab commit d3fe8e0

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

.circleci/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
command: |
3939
python -m venv .venv
4040
. .venv/bin/activate
41-
python -m pip install --upgrade pip
42-
pip install ruff -c requirements/dev.txt
41+
python -m pip install --upgrade uv
42+
uv pip install ruff -c requirements/dev.txt
4343
4444
- save_cache:
4545
name: Save cached ruff venv
@@ -98,20 +98,20 @@ jobs:
9898
command: |
9999
python -m venv .venv
100100
. .venv/bin/activate
101-
python -m pip install --upgrade pip
102-
python -m pip install '.[dev]'
101+
python -m pip install --upgrade uv
102+
uv sync --all-extras --dev
103103
104104
- save_cache:
105105
name: Save cached venv
106106
paths:
107-
- "env/"
107+
- "venv/"
108108
key: v2-pypi-py<< parameters.python-version >>-{{ checksum "requirements/prod.txt" }}+{{ checksum "requirements/dev.txt" }}
109109

110110
- run:
111111
name: Install Bittensor
112112
command: |
113113
. .venv/bin/activate
114-
pip install -e '.[dev]'
114+
uv sync --all-extras --dev
115115
116116
- run:
117117
name: Instantiate Mock Wallet
@@ -189,9 +189,9 @@ jobs:
189189
command: |
190190
python -m venv .venv
191191
. .venv/bin/activate
192-
python -m pip install --upgrade pip
193-
python -m pip install '.[dev]'
194-
pip install flake8
192+
python -m pip install --upgrade uv
193+
uv sync --all-extras --dev
194+
uv pip install flake8
195195
196196
- save_cache:
197197
name: Save cached venv
@@ -203,7 +203,7 @@ jobs:
203203
name: Install Bittensor
204204
command: |
205205
. .venv/bin/activate
206-
pip install -e '.[dev]'
206+
uv sync --all-extras --dev
207207
208208
- run:
209209
name: Lint with flake8
@@ -232,7 +232,7 @@ jobs:
232232
- run:
233233
name: Combine Coverage
234234
command: |
235-
pip3 install --upgrade coveralls
235+
uv pip install --upgrade coveralls
236236
coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage"
237237
238238
check-version-updated:

tests/e2e_tests/test_metagraph.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from bittensor.core.chain_data.metagraph_info import MetagraphInfo
77
from bittensor.utils.balance import Balance
88
from bittensor.utils.btlogging import logging
9-
from tests.e2e_tests.utils.chain_interactions import ANY_BALANCE
109

1110
NULL_KEY = tuple(bytearray(32))
1211

@@ -204,14 +203,14 @@ def test_metagraph_info(subtensor, alice_wallet):
204203
subnet_emission=Balance(0),
205204
alpha_in=Balance.from_tao(10),
206205
alpha_out=Balance.from_tao(2),
207-
tao_in=ANY_BALANCE,
206+
tao_in=Balance.from_tao(10),
208207
alpha_out_emission=Balance.from_tao(1),
209208
alpha_in_emission=Balance(0),
210209
tao_in_emission=Balance(0),
211210
pending_alpha_emission=Balance.from_tao(0.820004577),
212211
pending_root_emission=Balance(0),
213212
subnet_volume=Balance(0),
214-
moving_price=Balance.from_tao(0.000003000),
213+
moving_price=Balance(0),
215214
rho=10,
216215
kappa=32767,
217216
min_allowed_weights=0.0,
@@ -268,9 +267,9 @@ def test_metagraph_info(subtensor, alice_wallet):
268267
trust=[0.0],
269268
rank=[0.0],
270269
block_at_registration=(0,),
271-
alpha_stake=[ANY_BALANCE],
270+
alpha_stake=[Balance.from_tao(1.0)],
272271
tao_stake=[Balance(0)],
273-
total_stake=[ANY_BALANCE],
272+
total_stake=[Balance.from_tao(1.0)],
274273
tao_dividends_per_hotkey=[
275274
("5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM", Balance(0))
276275
],

0 commit comments

Comments
 (0)