Fix examples/chat/chat.py. Extract test requirements to .travis.yaml file.
This commit is contained in:
parent
ce6ddb27a9
commit
d629a0c85e
|
@ -4,11 +4,11 @@ python:
|
|||
- "3.6"
|
||||
|
||||
install:
|
||||
- pip install codecov pytest pytest-cov
|
||||
- pip install codecov pytest pytest-cov pytest-asyncio pylint
|
||||
- python setup.py develop
|
||||
|
||||
script:
|
||||
- py.test --cov=./libp2p tests/
|
||||
- pytest --cov=./libp2p tests/
|
||||
- pylint --rcfile=.pylintrc libp2p tests
|
||||
|
||||
after_success:
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
import asyncio
|
||||
import sys
|
||||
from os.path import abspath, dirname
|
||||
|
||||
import click
|
||||
|
||||
from libp2p.libp2p import *
|
||||
from network.multiaddr import MultiAddr
|
||||
from peer.peerinfo import info_from_p2p_addr
|
||||
|
||||
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
|
||||
from libp2p import new_node
|
||||
from libp2p.peer.peerinfo import info_from_p2p_addr
|
||||
|
||||
|
||||
PROTOCOL_ID = '/chat/1.0.0'
|
||||
|
|
Loading…
Reference in New Issue
Block a user