diff --git a/CHANGELOG.md b/CHANGELOG.md index 47b9813d41..b04ebaa0f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 541b8ec6bb..109a321030 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/bittensor/core/settings.py b/bittensor/core/settings.py index 477d4d955b..36314c2b72 100644 --- a/bittensor/core/settings.py +++ b/bittensor/core/settings.py @@ -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 diff --git a/requirements/btcli.txt b/requirements/btcli.txt deleted file mode 100644 index 6a86c87bcb..0000000000 --- a/requirements/btcli.txt +++ /dev/null @@ -1 +0,0 @@ -bittensor-cli \ No newline at end of file diff --git a/requirements/prod.txt b/requirements/prod.txt index 6b9b5380c5..4a319c506c 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -1,5 +1,6 @@ wheel setuptools~=70.0.0 +bittensor-cli aiohttp~=3.9 bt-decode colorama~=0.4.6 @@ -20,4 +21,4 @@ python-Levenshtein scalecodec==1.2.11 substrate-interface~=1.7.9 uvicorn -bittensor-wallet==2.0.1 \ No newline at end of file +bittensor-wallet>=2.0.2 diff --git a/setup.py b/setup.py index 290274bd84..efc9f926e2 100644 --- a/setup.py +++ b/setup.py @@ -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") @@ -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, }, diff --git a/tests/e2e_tests/conftest.py b/tests/e2e_tests/conftest.py index 5f562039ee..59170c9512 100644 --- a/tests/e2e_tests/conftest.py +++ b/tests/e2e_tests/conftest.py @@ -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()) diff --git a/tests/unit_tests/test_config.py b/tests/unit_tests/test_config.py new file mode 100644 index 0000000000..53754764e1 --- /dev/null +++ b/tests/unit_tests/test_config.py @@ -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