Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 8.2.0 /2024-10-10

## What's Changed
* remove commit from e2e tests by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2340
* add bittensor-cli as prod deps for sdk by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2345
* Fix the install command syntax by @rajkaramchedu in https://github.com/opentensor/bittensor/pull/2346
* add config test by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2347
* Bumps version for 8.2.0 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2348

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v8.1.1...v8.2.0

## 8.1.1 /2024-10-04

## What's Changed
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,22 @@ git clone https://github.com/opentensor/bittensor.git

You can install using any of the below options:

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

```python
pip install bittensor
```

- **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`.

```python
pip install bittensor[btcli]
```

- **Install SDK with `torch`**: Install Bittensor SDK with [`torch`](https://pytorch.org/docs/stable/torch.html).

```python
pip install bittensor[torch]
```
In some environments the above command may fail, in which case run the command with added quotes as shown below:

```python
pip install "bittensor[torch]"
```

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

Expand Down
2 changes: 1 addition & 1 deletion bittensor/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

__version__ = "8.1.1"
__version__ = "8.2.0"

import os
import re
Expand Down
1 change: 0 additions & 1 deletion requirements/btcli.txt

This file was deleted.

3 changes: 2 additions & 1 deletion requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
wheel
setuptools~=70.0.0
bittensor-cli
aiohttp~=3.9
bt-decode
colorama~=0.4.6
Expand All @@ -20,4 +21,4 @@ python-Levenshtein
scalecodec==1.2.11
substrate-interface~=1.7.9
uvicorn
bittensor-wallet==2.0.1
bittensor-wallet>=2.0.2
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def read_requirements(path):


requirements = read_requirements("requirements/prod.txt")
extra_requirements_btcli = read_requirements("requirements/btcli.txt")
extra_requirements_dev = read_requirements("requirements/dev.txt")
extra_requirements_cubit = read_requirements("requirements/cubit.txt")
extra_requirements_torch = read_requirements("requirements/torch.txt")
Expand Down Expand Up @@ -75,7 +74,6 @@ def read_requirements(path):
python_requires=">=3.9",
install_requires=requirements,
extras_require={
"btcli": extra_requirements_btcli,
"dev": extra_requirements_dev,
"torch": extra_requirements_torch,
},
Expand Down
4 changes: 1 addition & 3 deletions tests/e2e_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ def local_chain(request):
# install neuron templates
logging.info("downloading and installing neuron templates from github")
# commit with subnet-template-repo changes for rust wallet
templates_dir = clone_or_update_templates(
"334d3da101279218b3a4c9d72a12d517f6e39be3"
)
templates_dir = clone_or_update_templates()
install_templates(templates_dir)

timestamp = int(time.time())
Expand Down
27 changes: 27 additions & 0 deletions tests/unit_tests/test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import bittensor
import argparse


def test_py_config_parsed_successfully_rust_wallet():
"""Verify that python based config object is successfully parsed with rust-based wallet object."""
# Preps
parser = argparse.ArgumentParser()

bittensor.wallet.add_args(parser)
bittensor.subtensor.add_args(parser)
bittensor.axon.add_args(parser)
bittensor.logging.add_args(parser)

config = bittensor.config(parser)

# since we can't apply mocking to rust implewmented object then replace those directly
config.wallet.name = "new_wallet_name"
config.wallet.hotkey = "new_hotkey"
config.wallet.path = "/some/not_default/path"

wallet = bittensor.wallet(config=config)

# Asserts
assert wallet.name == config.wallet.name
assert wallet.hotkey_str == config.wallet.hotkey
assert wallet.path == config.wallet.path