diff --git a/.circleci/config.yml b/.circleci/config.yml index 5677de43b2..74c29215b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -209,18 +209,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 @@ -297,11 +285,6 @@ workflows: release-branches-requirements: jobs: - - check-version-updated: - filters: - branches: - only: - - /^(release|hotfix)/.*/ - check-changelog-updated: filters: branches: 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 diff --git a/VERSION b/VERSION deleted file mode 100644 index 4d0ffae7b5..0000000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -9.3.0 \ No newline at end of file diff --git a/bittensor/core/settings.py b/bittensor/core/settings.py index d3b68c04d3..cf2c07b38d 100644 --- a/bittensor/core/settings.py +++ b/bittensor/core/settings.py @@ -1,6 +1,5 @@ -__version__ = "9.3.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