Skip to content

Commit 1b7b69a

Browse files
committed
Merge branch 'feat/thewhaleking/pyproject-toml' into feat/thewhaleking/use-uv-gh-actions
2 parents 03dc18b + 44760b1 commit 1b7b69a

File tree

168 files changed

+19730
-13135
lines changed

Some content is hidden

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

168 files changed

+19730
-13135
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
max-parallel: 8 # Set the maximum number of parallel jobs
5353
matrix:
5454
rust-branch:
55-
- nightly-2024-03-05
55+
- stable
5656
rust-target:
5757
- x86_64-unknown-linux-gnu
5858
os:
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Setup subtensor repo
9292
working-directory: ${{ github.workspace }}/subtensor
93-
run: git checkout testnet
93+
run: git checkout devnet-ready
9494

9595
- name: Install uv
9696
uses: astral-sh/setup-uv@v4

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
fi
4646
4747
- name: Upload artifact
48-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
4949
with:
5050
name: dist
5151
path: dist/
@@ -60,7 +60,7 @@ jobs:
6060

6161
steps:
6262
- name: Download artifact
63-
uses: actions/download-artifact@v3
63+
uses: actions/download-artifact@v4
6464
with:
6565
name: dist
6666
path: dist/

CHANGELOG.md

Lines changed: 257 additions & 0 deletions
Large diffs are not rendered by default.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ LABEL bittensor.image.authors="bittensor.com" \
1212
ARG DEBIAN_FRONTEND=noninteractive
1313

1414
# Update the base image
15-
RUN apt update && apt upgrade -y
15+
RUN apt-get update && apt-get upgrade -y
1616
# Install bittensor
1717
## Install dependencies
18-
RUN apt install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
18+
RUN apt-get install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
1919
## Upgrade pip
2020
RUN pip3 install --upgrade pip
2121

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.1
1+
9.0.2

bittensor/__init__.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
# The MIT License (MIT)
2-
# Copyright © 2024 Opentensor Foundation
3-
#
4-
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5-
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
6-
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7-
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8-
#
9-
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
10-
# the Software.
11-
#
12-
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
13-
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16-
# DEALINGS IN THE SOFTWARE.
17-
181
import warnings
192

20-
from .core.settings import __version__, version_split, DEFAULTS
3+
from .core.settings import __version__, version_split, DEFAULTS, DEFAULT_NETWORK
214
from .utils.btlogging import logging
22-
from .utils.deprecated import *
5+
from .utils.easy_imports import *
236

247

258
def __getattr__(name):

bittensor/__main__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
# The MIT License (MIT)
2-
# Copyright © 2024 Opentensor Foundation
3-
#
4-
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5-
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
6-
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7-
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8-
#
9-
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
10-
# the Software.
11-
#
12-
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
13-
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16-
# DEALINGS IN THE SOFTWARE.
17-
181
import os
192
import subprocess
203
import sys

0 commit comments

Comments
 (0)