Skip to content

Commit 631a468

Browse files
committed
Put the version in a single place (toml)
1 parent 24c4059 commit 631a468

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.circleci/config.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

bittensor/core/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
__version__ = "9.2.0"
2-
31
import os
2+
import importlib.metadata
43
import re
54
from pathlib import Path
65

@@ -15,6 +14,8 @@
1514
WALLETS_DIR = USER_BITTENSOR_DIR / "wallets"
1615
MINERS_DIR = USER_BITTENSOR_DIR / "miners"
1716

17+
__version__ = importlib.metadata.version("bittensor")
18+
1819

1920
if not READ_ONLY:
2021
# Create dirs if they don't exist

0 commit comments

Comments
 (0)