Skip to content

Commit 074f0f1

Browse files
authored
Merge pull request #2806 from opentensor/feat/thewhaleking/version-in-one-place
version in one place
2 parents 86d4367 + d6507a0 commit 074f0f1

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

.circleci/config.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,18 +209,6 @@ jobs:
209209
uv pip install --upgrade coveralls
210210
coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage"
211211
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-
224212
check-changelog-updated:
225213
docker:
226214
- image: cimg/python:3.10
@@ -297,11 +285,6 @@ workflows:
297285

298286
release-branches-requirements:
299287
jobs:
300-
- check-version-updated:
301-
filters:
302-
branches:
303-
only:
304-
- /^(release|hotfix)/.*/
305288
- check-changelog-updated:
306289
filters:
307290
branches:

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
version: 2
22
updates:
33
- package-ecosystem: "pip"
4-
directory: ""
5-
file: "pyproject.toml"
4+
directory: "/"
65
schedule:
76
interval: "daily"
87
open-pull-requests-limit: 0 # Only security updates will be opened as PRs

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.3.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)