Fix examples/chat/chat.py. Extract test requirements to .travis.yaml file.

This commit is contained in:
Alexander Koshkin 2019-01-09 22:01:46 +03:00
parent ce6ddb27a9
commit d629a0c85e
3 changed files with 4 additions and 12 deletions

View File

@ -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:

View File

@ -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'

View File

@ -17,10 +17,7 @@ setuptools.setup(
platforms=["unix", "linux", "osx"],
classifiers=classifiers,
install_requires=[
"pylint",
"pytest",
"pycryptodome",
"pytest-asyncio",
"click",
"base58",
"pymultihash",