Skip to content

Commit

Permalink
Merge pull request #1724 from carver/upgrade-deps
Browse files Browse the repository at this point in the history
Upgrade eth-account and eth-tester
  • Loading branch information
carver authored Sep 2, 2020
2 parents d431db5 + 706a314 commit ad4772f
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 10 deletions.
2 changes: 2 additions & 0 deletions newsfragments/1724.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Upgrade eth-tester to v0.5.0-beta.2 and eth-account to v0.5.3. These both support the latest pyrlp,
which has a performance bump.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

extras_require = {
'tester': [
"eth-tester[py-evm]==v0.5.0-beta.1",
"eth-tester[py-evm]==v0.5.0-beta.2",
"py-geth>=2.4.0,<3",
],
'linter': [
Expand Down Expand Up @@ -70,7 +70,7 @@
include_package_data=True,
install_requires=[
"eth-abi>=2.0.0b6,<3.0.0",
"eth-account>=0.5.2,<0.6.0",
"eth-account>=0.5.3,<0.6.0",
"eth-hash[pycryptodome]>=0.2.0,<1.0.0",
"eth-typing>=2.0.0,<3.0.0",
"eth-utils>=1.9.3,<2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion web3/_utils/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
to_dict,
to_list,
)
from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatter_at_index,
)
from eth_utils.toolz import (
Expand Down
8 changes: 7 additions & 1 deletion web3/_utils/method_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
Collection,
Dict,
Iterable,
Tuple,
Union,
)

from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatter_at_index,
apply_formatter_if,
apply_formatter_to_array,
Expand Down Expand Up @@ -299,7 +300,12 @@ def apply_list_to_array_formatter(formatter: Any) -> Callable[..., Any]:
)


estimate_gas_without_block_id: Callable[[Dict[str, Any]], Dict[str, Any]]
estimate_gas_without_block_id = apply_formatter_at_index(transaction_param_formatter, 0)
estimate_gas_with_block_id: Callable[
[Tuple[Dict[str, Any], Union[str, int]]],
Tuple[Dict[str, Any], int]
]
estimate_gas_with_block_id = apply_formatters_to_sequence([
transaction_param_formatter,
block_number_formatter,
Expand Down
2 changes: 1 addition & 1 deletion web3/_utils/rpc_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from eth_utils import (
to_dict,
)
from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatter_at_index,
)
from eth_utils.toolz import (
Expand Down
2 changes: 1 addition & 1 deletion web3/_utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
is_list_like,
is_string,
)
from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatter_to_array,
)
from eth_utils.hexadecimal import (
Expand Down
2 changes: 1 addition & 1 deletion web3/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
import warnings

from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
to_tuple,
)
from eth_utils.toolz import (
Expand Down
2 changes: 1 addition & 1 deletion web3/middleware/geth_poa.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatters_to_dict,
apply_key_map,
)
Expand Down
2 changes: 1 addition & 1 deletion web3/middleware/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Callable,
)

from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatter_at_index,
apply_formatter_if,
apply_formatters_to_dict,
Expand Down
2 changes: 1 addition & 1 deletion web3/providers/eth_tester/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
is_hex,
is_string,
)
from eth_utils.curried import ( # type: ignore
from eth_utils.curried import (
apply_formatter_if,
apply_formatters_to_dict,
)
Expand Down

0 comments on commit ad4772f

Please sign in to comment.