Skip to content

Commit 5edcee4

Browse files
authored
Merge pull request #2349 from opentensor/release/8.2.0
Release v8.2.0
2 parents e9e33d1 + b288f78 commit 5edcee4

File tree

8 files changed

+48
-15
lines changed

8 files changed

+48
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 8.2.0 /2024-10-10
4+
5+
## What's Changed
6+
* remove commit from e2e tests by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2340
7+
* add bittensor-cli as prod deps for sdk by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2345
8+
* Fix the install command syntax by @rajkaramchedu in https://github.com/opentensor/bittensor/pull/2346
9+
* add config test by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2347
10+
* Bumps version for 8.2.0 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2348
11+
12+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v8.1.1...v8.2.0
13+
314
## 8.1.1 /2024-10-04
415

516
## What's Changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,22 @@ git clone https://github.com/opentensor/bittensor.git
134134

135135
You can install using any of the below options:
136136

137-
- **Install only SDK**: Run the below command to install Bittensor SDK in the above virtual environment.
137+
- **Install SDK**: Run the below command to install Bittensor SDK in the above virtual environment. This will also install `btcli`.
138138

139139
```python
140140
pip install bittensor
141141
```
142142

143-
- **Install SDK with `btcli`**: Install Bittensor SDK with `btcli`. The `btcli` will be installed as an independent tool and its Python package is `bittensor-cli`.
144-
145-
```python
146-
pip install bittensor[btcli]
147-
```
148-
149143
- **Install SDK with `torch`**: Install Bittensor SDK with [`torch`](https://pytorch.org/docs/stable/torch.html).
150144

151145
```python
152146
pip install bittensor[torch]
153147
```
148+
In some environments the above command may fail, in which case run the command with added quotes as shown below:
149+
150+
```python
151+
pip install "bittensor[torch]"
152+
```
154153

155154
- **Install SDK with `cubit`**: Install Bittensor SDK with [`cubit`](https://github.com/opentensor/cubit).
156155

bittensor/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1616
# DEALINGS IN THE SOFTWARE.
1717

18-
__version__ = "8.1.1"
18+
__version__ = "8.2.0"
1919

2020
import os
2121
import re

requirements/btcli.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

requirements/prod.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
wheel
22
setuptools~=70.0.0
3+
bittensor-cli
34
aiohttp~=3.9
45
bt-decode
56
colorama~=0.4.6
@@ -20,4 +21,4 @@ python-Levenshtein
2021
scalecodec==1.2.11
2122
substrate-interface~=1.7.9
2223
uvicorn
23-
bittensor-wallet==2.0.1
24+
bittensor-wallet>=2.0.2

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def read_requirements(path):
4040

4141

4242
requirements = read_requirements("requirements/prod.txt")
43-
extra_requirements_btcli = read_requirements("requirements/btcli.txt")
4443
extra_requirements_dev = read_requirements("requirements/dev.txt")
4544
extra_requirements_cubit = read_requirements("requirements/cubit.txt")
4645
extra_requirements_torch = read_requirements("requirements/torch.txt")
@@ -75,7 +74,6 @@ def read_requirements(path):
7574
python_requires=">=3.9",
7675
install_requires=requirements,
7776
extras_require={
78-
"btcli": extra_requirements_btcli,
7977
"dev": extra_requirements_dev,
8078
"torch": extra_requirements_torch,
8179
},

tests/e2e_tests/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ def local_chain(request):
4646
# install neuron templates
4747
logging.info("downloading and installing neuron templates from github")
4848
# commit with subnet-template-repo changes for rust wallet
49-
templates_dir = clone_or_update_templates(
50-
"334d3da101279218b3a4c9d72a12d517f6e39be3"
51-
)
49+
templates_dir = clone_or_update_templates()
5250
install_templates(templates_dir)
5351

5452
timestamp = int(time.time())

tests/unit_tests/test_config.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import bittensor
2+
import argparse
3+
4+
5+
def test_py_config_parsed_successfully_rust_wallet():
6+
"""Verify that python based config object is successfully parsed with rust-based wallet object."""
7+
# Preps
8+
parser = argparse.ArgumentParser()
9+
10+
bittensor.wallet.add_args(parser)
11+
bittensor.subtensor.add_args(parser)
12+
bittensor.axon.add_args(parser)
13+
bittensor.logging.add_args(parser)
14+
15+
config = bittensor.config(parser)
16+
17+
# since we can't apply mocking to rust implewmented object then replace those directly
18+
config.wallet.name = "new_wallet_name"
19+
config.wallet.hotkey = "new_hotkey"
20+
config.wallet.path = "/some/not_default/path"
21+
22+
wallet = bittensor.wallet(config=config)
23+
24+
# Asserts
25+
assert wallet.name == config.wallet.name
26+
assert wallet.hotkey_str == config.wallet.hotkey
27+
assert wallet.path == config.wallet.path

0 commit comments

Comments
 (0)