Skip to content

Commit

Permalink
chore: add msgspec dependency (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg authored Sep 10, 2022
1 parent b865209 commit fddebbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions evm_trace/vmtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
from eth.vm.stack import Stack # type: ignore
from eth_utils import to_checksum_address
from hexbytes import HexBytes

try:
from msgspec import Struct # type: ignore
from msgspec.json import Decoder # type: ignore
except ImportError as e:
raise ImportError("msgspec not found. install it with `pip install msgspec`") from e
from msgspec import Struct # type: ignore
from msgspec.json import Decoder # type: ignore

# opcodes grouped by the number of items they pop from the stack
# fmt: off
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"hexbytes>=0.3.0,<1.0.0",
"eth-utils>=2.0.0",
"ethpm-types>=0.3.7,<0.4.0",
"msgspec>=0.8.0",
],
python_requires=">=3.8,<4",
extras_require=extras_require,
Expand Down

0 comments on commit fddebbe

Please sign in to comment.