Skip to content

Commit

Permalink
Merge pull request #13 from antazoey/chore/more-eth-upgrade
Browse files Browse the repository at this point in the history
chore: loosen ETH-dependency pins
  • Loading branch information
antazoey authored Aug 26, 2024
2 parents 055f31d + 718d7db commit bf80c17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"pytest-mock", # For creating mocks
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
"hypothesis-jsonschema==0.19.0", # JSON Schema fuzzer extension
"eth-hash[pycryptodome]", # For backends to work
],
"lint": [
"black>=24.8.0,<25", # Auto-formatter and linter
Expand Down Expand Up @@ -73,10 +74,9 @@
url="https://github.com/ApeWorX/eth-pydantic-types",
include_package_data=True,
install_requires=[
"hexbytes>=1.2.0,<2",
"eth-hash[pycryptodome]",
"eth-utils>=5.0.0,<6",
"eth-typing>=5.0.0,<6",
"hexbytes>=0.3.1,<2",
"eth-utils>=2.3.1,<6",
"eth-typing>=3.5.2,<6",
"pydantic>=2.5.2,<3",
"typing_extensions>=4.8.0,<5",
],
Expand Down
3 changes: 2 additions & 1 deletion tests/test_hex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest
from eth_utils import to_hex
from hexbytes import HexBytes as BaseHexBytes
from pydantic import BaseModel, ValidationError

Expand All @@ -20,7 +21,7 @@ def test_hexbytes(value):

# The end result, the value is a hexbytes.HexBytes
assert actual.value == BaseHexBytes(value)
assert actual.value.hex() == "0a"
assert to_hex(actual.value) == "0x0a"
assert isinstance(actual.value, bytes)
assert isinstance(actual.value, BaseHexBytes)

Expand Down

0 comments on commit bf80c17

Please sign in to comment.