mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
Remove testrpc import requirement
This commit is contained in:
parent
d765a285b9
commit
508f6465bc
@ -1,7 +1,6 @@
|
||||
pytest>=2.8.2
|
||||
pytest-pythonpath>=0.3
|
||||
tox>=1.8.0
|
||||
eth-testrpc>=0.9.0
|
||||
py-geth>=1.4.0
|
||||
ethereum>=1.5.2
|
||||
secp256k1>=0.13.1
|
||||
|
||||
@ -2,8 +2,6 @@ import logging
|
||||
|
||||
import gevent
|
||||
|
||||
from testrpc.rpc import RPCMethods
|
||||
|
||||
from .base import BaseProvider # noqa: E402
|
||||
from .rpc import RPCProvider # noqa: E402
|
||||
|
||||
@ -23,7 +21,8 @@ class EthereumTesterProvider(BaseProvider):
|
||||
def __init__(self,
|
||||
*args,
|
||||
**kwargs):
|
||||
"""Create a new RPC client.
|
||||
"""
|
||||
Create a new RPC client.
|
||||
|
||||
:param connection_timeout: See :class:`geventhttpclient.HTTPClient`
|
||||
|
||||
@ -31,6 +30,8 @@ class EthereumTesterProvider(BaseProvider):
|
||||
"""
|
||||
if not is_testrpc_available():
|
||||
raise Exception("`TestRPCProvider` requires the `eth-testrpc` package to be installed")
|
||||
from testrpc.rpc import RPCMethods
|
||||
|
||||
self.rpc_methods = RPCMethods()
|
||||
super(BaseProvider, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user