Skip to content

Commit 872e4a6

Browse files
authored
Merge branch 'staging' into patch-1
2 parents cb4e5f4 + 50799bb commit 872e4a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2027
-258
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ workflows:
290290
- check_compatibility:
291291
python_version: "3.12"
292292
name: check-compatibility-3.12
293+
- check_compatibility:
294+
python_version: "3.13"
295+
name: check-compatibility-3.13
293296

294297

295298
pr-requirements:
@@ -302,7 +305,7 @@ workflows:
302305
- build-and-test:
303306
matrix:
304307
parameters:
305-
python-version: [ "3.9.13", "3.10.6", "3.11.4", "3.12.7" ]
308+
python-version: [ "3.9.13", "3.10.6", "3.11.4", "3.12.7"]
306309
requires:
307310
- check-if-pr-is-draft
308311
- unit-tests-all-python-versions:
@@ -311,7 +314,7 @@ workflows:
311314
- lint-and-type-check:
312315
matrix:
313316
parameters:
314-
python-version: [ "3.9.13", "3.10.6", "3.11.4", "3.12.7" ]
317+
python-version: [ "3.9.13", "3.10.6", "3.11.4", "3.12.7"]
315318
requires:
316319
- check-if-pr-is-draft
317320
#- coveralls:

.github/workflows/e2e-subtensor-tests.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
5050

5151
- name: Pull Docker Image
52-
run: docker pull ghcr.io/opentensor/subtensor-localnet:latest
52+
run: docker pull ghcr.io/opentensor/subtensor-localnet:devnet-ready
5353

5454
- name: Save Docker Image to Cache
55-
run: docker save -o subtensor-localnet.tar ghcr.io/opentensor/subtensor-localnet:latest
55+
run: docker save -o subtensor-localnet.tar ghcr.io/opentensor/subtensor-localnet:devnet-ready
5656

5757
- name: Upload Docker Image as Artifact
5858
uses: actions/upload-artifact@v4
@@ -62,6 +62,7 @@ jobs:
6262

6363
# Job to run tests in parallel
6464
run:
65+
name: ${{ matrix.test-file }} / Python ${{ matrix.python-version }}
6566
needs:
6667
- find-tests
6768
- pull-docker-image
@@ -74,10 +75,16 @@ jobs:
7475
os:
7576
- ubuntu-latest
7677
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
78+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
7779
steps:
7880
- name: Check-out repository
7981
uses: actions/checkout@v4
8082

83+
- name: Set up Python ${{ matrix.python-version }}
84+
uses: actions/setup-python@v5
85+
with:
86+
python-version: ${{ matrix.python-version }}
87+
8188
- name: Install uv
8289
uses: astral-sh/setup-uv@v4
8390

bittensor/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44

55
from bittensor import __version__
6+
from bittensor.utils.version import check_latest_version_in_pypi
67

78
if __name__ == "__main__":
89
if len(sys.argv) > 1 and sys.argv[1] == "certifi":
@@ -18,4 +19,5 @@
1819
# Run the script
1920
subprocess.run([certifi_script], check=True)
2021
else:
21-
print(f"Bittensor SDK version: {__version__}")
22+
print(f"Installed Bittensor SDK version: {__version__}")
23+
check_latest_version_in_pypi()

0 commit comments

Comments
 (0)