From 631a4687d4992402b7a9ace7ebb82d62ac49b4ad Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Wed, 9 Apr 2025 22:27:43 +0200 Subject: [PATCH 1/3] Put the version in a single place (toml) --- .circleci/config.yml | 12 ------------ VERSION | 1 - bittensor/core/settings.py | 5 +++-- 3 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 VERSION diff --git a/.circleci/config.yml b/.circleci/config.yml index fbe39a6645..a1222c0318 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -235,18 +235,6 @@ jobs: uv pip install --upgrade coveralls coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage" - check-version-updated: - docker: - - image: cimg/python:3.10 - steps: - - checkout - - - run: - name: Version is updated - command: | - [[ $(git diff-tree --no-commit-id --name-only -r HEAD..master | grep bittensor/__init__.py | wc -l) == 1 ]] && echo "bittensor/__init__.py has changed" - [[ $(git diff-tree --no-commit-id --name-only -r HEAD..master | grep VERSION | wc -l) == 1 ]] && echo "VERSION has changed" - check-changelog-updated: docker: - image: cimg/python:3.10 diff --git a/VERSION b/VERSION deleted file mode 100644 index 85f864fe85..0000000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -9.2.0 \ No newline at end of file diff --git a/bittensor/core/settings.py b/bittensor/core/settings.py index 8a53f6c423..cf2c07b38d 100644 --- a/bittensor/core/settings.py +++ b/bittensor/core/settings.py @@ -1,6 +1,5 @@ -__version__ = "9.2.0" - import os +import importlib.metadata import re from pathlib import Path @@ -15,6 +14,8 @@ WALLETS_DIR = USER_BITTENSOR_DIR / "wallets" MINERS_DIR = USER_BITTENSOR_DIR / "miners" +__version__ = importlib.metadata.version("bittensor") + if not READ_ONLY: # Create dirs if they don't exist From 237bd6fe43621bdbdd50a446969b2aec2c65bb84 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 14 Apr 2025 17:00:30 +0200 Subject: [PATCH 2/3] Update test config. --- .circleci/config.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 727cee6df2..74c29215b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -285,11 +285,6 @@ workflows: release-branches-requirements: jobs: - - check-version-updated: - filters: - branches: - only: - - /^(release|hotfix)/.*/ - check-changelog-updated: filters: branches: From c7dcb68e368f93152428843519306ed76e7b6277 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Mon, 14 Apr 2025 19:52:29 +0200 Subject: [PATCH 3/3] Removed 'file' param from dependabot.yml --- .github/dependabot.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 190e4cd6c5..9ffce36ee7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,7 @@ version: 2 updates: - package-ecosystem: "pip" - directory: "" - file: "pyproject.toml" + directory: "/" schedule: interval: "daily" open-pull-requests-limit: 0 # Only security updates will be opened as PRs