Skip to content

Commit

Permalink
Merge pull request #37 from njgheorghita/ethpm-migrate
Browse files Browse the repository at this point in the history
Remove ethpm.typing dependency
  • Loading branch information
njgheorghita committed Jun 24, 2019
2 parents f163574 + 8de8f71 commit eb630dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pytest_ethereum/_utils/linker.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any, Dict, Iterable, List, Tuple

from eth_typing import URI, Address, Manifest
from eth_utils import to_canonical_address, to_dict, to_hex, to_list
from eth_utils.toolz import assoc, assoc_in, dissoc
from ethpm import Package
from ethpm.typing import URI, Address, Manifest
from ethpm.utils.chains import (
check_if_chain_matches_chain_uri,
create_block_uri,
Expand All @@ -15,7 +15,7 @@
from pytest_ethereum.typing import TxReceipt


def pluck_matching_uri(deployment_data: Dict[str, Dict[str, str]], w3: Web3) -> URI:
def pluck_matching_uri(deployment_data: Dict[URI, Dict[str, str]], w3: Web3) -> URI:
"""
Return any blockchain uri that matches w3-connected chain, if one
is present in the deployment data keys.
Expand Down
2 changes: 1 addition & 1 deletion pytest_ethereum/deployer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Callable, Dict, Tuple # noqa: F401

from eth_typing import Address
from ethpm import Package
from ethpm.typing import Address

from pytest_ethereum.exceptions import DeployerError
from pytest_ethereum.linker import deploy, linker
Expand Down
2 changes: 1 addition & 1 deletion pytest_ethereum/linker.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import logging
from typing import Any, Callable, Dict, Tuple

from eth_typing import Address
from eth_utils import to_canonical_address, to_checksum_address, to_hex
from eth_utils.toolz import assoc_in, curry, pipe
from ethpm import Package
from ethpm.typing import Address

from pytest_ethereum._utils.linker import (
create_deployment_data,
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

TESTS_DIR = Path(__file__).parent

pytest_plugins = ["pytest_ethereum.plugins"]


@pytest.fixture
def manifest_dir():
Expand Down

0 comments on commit eb630dc

Please sign in to comment.