Skip to content

Commit

Permalink
Merge pull request opentensor#2174 from opentensor/release/7.3.1
Browse files Browse the repository at this point in the history
Release/7.3.1
  • Loading branch information
gus-opentensor authored Aug 19, 2024
2 parents f650202 + bde27d5 commit 3632f69
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 22 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 7.3.1 / 2024-08-19

## What's Changed
* https://github.com/opentensor/bittensor/pull/2156 by @camfairchild

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.3.0...v7.3.1

## 7.3.0 / 2024-07-12

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0
7.3.1
2 changes: 1 addition & 1 deletion bittensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


# Bittensor code and protocol version.
__version__ = "7.3.0"
__version__ = "7.3.1"

_version_split = __version__.split(".")
__version_info__ = tuple(int(part) for part in _version_split)
Expand Down
5 changes: 3 additions & 2 deletions bittensor/dendrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import uuid
import time
import aiohttp
from aiohttp import ClientTimeout

import bittensor
from typing import Optional, List, Union, AsyncGenerator, Any
Expand Down Expand Up @@ -521,7 +522,7 @@ async def call(
url,
headers=synapse.to_headers(),
json=synapse.model_dump(),
timeout=timeout,
timeout=ClientTimeout(total=timeout),
) as response:
# Extract the JSON response from the server
json_response = await response.json()
Expand Down Expand Up @@ -603,7 +604,7 @@ async def call_stream(
url,
headers=synapse.to_headers(),
json=synapse.model_dump(),
timeout=timeout,
timeout=ClientTimeout(total=timeout),
) as response:
# Use synapse subclass' process_streaming_response method to yield the response chunks
async for chunk in synapse.process_streaming_response(response): # type: ignore
Expand Down
14 changes: 0 additions & 14 deletions bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import argparse
import copy
import functools
import socket
import time
from typing import List, Dict, Union, Optional, Tuple, TypedDict, Any
Expand Down Expand Up @@ -109,19 +108,6 @@

KEY_NONCE: Dict[str, int] = {}

#######
# Monkey patch in caching the convert_type_string method
#######
if hasattr(RuntimeConfiguration, "convert_type_string"):
original_convert_type_string = RuntimeConfiguration.convert_type_string

@functools.lru_cache(maxsize=None)
def convert_type_string(_, name):
return original_convert_type_string(name)

RuntimeConfiguration.convert_type_string = convert_type_string
#######


class ParamWithTypes(TypedDict):
name: str # Name of the parameter.
Expand Down
4 changes: 2 additions & 2 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ python-statemachine~=2.1.2
retry
requests
rich
scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class
scalecodec==1.2.11
shtab~=1.6.5
substrate-interface~=1.7.5
substrate-interface~=1.7.9
termcolor
tqdm
uvicorn<=0.30
Expand Down
4 changes: 2 additions & 2 deletions scripts/environments/apple_m1_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ dependencies:
- retry==0.9.2
- rich==12.5.1
- rsa==4.9
- scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class
- scalecodec==1.2.11
- scikit-learn==1.2.2
- scipy==1.10.1
- sentencepiece==0.1.99
Expand All @@ -242,7 +242,7 @@ dependencies:
- sqlalchemy==2.0.19
- starlette==0.37.2
- streamlit==1.22.0
- substrate-interface==1.5.2
- substrate-interface==1.7.9
- tenacity==8.2.2
- termcolor==2.1.1
- threadpoolctl==3.1.0
Expand Down

0 comments on commit 3632f69

Please sign in to comment.