File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed
Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -235,18 +235,6 @@ jobs:
235235 uv pip install --upgrade coveralls
236236 coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage"
237237
238- check-version-updated :
239- docker :
240- - image : cimg/python:3.10
241- steps :
242- - checkout
243-
244- - run :
245- name : Version is updated
246- command : |
247- [[ $(git diff-tree --no-commit-id --name-only -r HEAD..master | grep bittensor/__init__.py | wc -l) == 1 ]] && echo "bittensor/__init__.py has changed"
248- [[ $(git diff-tree --no-commit-id --name-only -r HEAD..master | grep VERSION | wc -l) == 1 ]] && echo "VERSION has changed"
249-
250238 check-changelog-updated :
251239 docker :
252240 - image : cimg/python:3.10
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- __version__ = "9.2.0"
2-
31import os
2+ import importlib .metadata
43import re
54from pathlib import Path
65
1514WALLETS_DIR = USER_BITTENSOR_DIR / "wallets"
1615MINERS_DIR = USER_BITTENSOR_DIR / "miners"
1716
17+ __version__ = importlib .metadata .version ("bittensor" )
18+
1819
1920if not READ_ONLY :
2021 # Create dirs if they don't exist
You can’t perform that action at this time.
0 commit comments