File tree Expand file tree Collapse file tree 4 files changed +4
-22
lines changed Expand file tree Collapse file tree 4 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -209,18 +209,6 @@ jobs:
209
209
uv pip install --upgrade coveralls
210
210
coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage"
211
211
212
- check-version-updated :
213
- docker :
214
- - image : cimg/python:3.10
215
- steps :
216
- - checkout
217
-
218
- - run :
219
- name : Version is updated
220
- command : |
221
- [[ $(git diff-tree --no-commit-id --name-only -r HEAD..master | grep bittensor/__init__.py | wc -l) == 1 ]] && echo "bittensor/__init__.py has changed"
222
- [[ $(git diff-tree --no-commit-id --name-only -r HEAD..master | grep VERSION | wc -l) == 1 ]] && echo "VERSION has changed"
223
-
224
212
check-changelog-updated :
225
213
docker :
226
214
- image : cimg/python:3.10
@@ -297,11 +285,6 @@ workflows:
297
285
298
286
release-branches-requirements :
299
287
jobs :
300
- - check-version-updated :
301
- filters :
302
- branches :
303
- only :
304
- - /^(release|hotfix)/.*/
305
288
- check-changelog-updated :
306
289
filters :
307
290
branches :
Original file line number Diff line number Diff line change 1
1
version : 2
2
2
updates :
3
3
- package-ecosystem : " pip"
4
- directory : " "
5
- file : " pyproject.toml"
4
+ directory : " /"
6
5
schedule :
7
6
interval : " daily"
8
7
open-pull-requests-limit : 0 # Only security updates will be opened as PRs
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- __version__ = "9.3.0"
2
-
3
1
import os
2
+ import importlib .metadata
4
3
import re
5
4
from pathlib import Path
6
5
15
14
WALLETS_DIR = USER_BITTENSOR_DIR / "wallets"
16
15
MINERS_DIR = USER_BITTENSOR_DIR / "miners"
17
16
17
+ __version__ = importlib .metadata .version ("bittensor" )
18
+
18
19
19
20
if not READ_ONLY :
20
21
# Create dirs if they don't exist
You can’t perform that action at this time.
0 commit comments