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"
|
- "3.6"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install codecov pytest pytest-cov
|
- pip install codecov pytest pytest-cov pytest-asyncio pylint
|
||||||
- python setup.py develop
|
- python setup.py develop
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- py.test --cov=./libp2p tests/
|
- pytest --cov=./libp2p tests/
|
||||||
- pylint --rcfile=.pylintrc libp2p tests
|
- pylint --rcfile=.pylintrc libp2p tests
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import sys
|
import sys
|
||||||
from os.path import abspath, dirname
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
from libp2p.libp2p import *
|
from libp2p import new_node
|
||||||
from network.multiaddr import MultiAddr
|
from libp2p.peer.peerinfo import info_from_p2p_addr
|
||||||
from peer.peerinfo import info_from_p2p_addr
|
|
||||||
|
|
||||||
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
|
|
||||||
|
|
||||||
|
|
||||||
PROTOCOL_ID = '/chat/1.0.0'
|
PROTOCOL_ID = '/chat/1.0.0'
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -17,10 +17,7 @@ setuptools.setup(
|
||||||
platforms=["unix", "linux", "osx"],
|
platforms=["unix", "linux", "osx"],
|
||||||
classifiers=classifiers,
|
classifiers=classifiers,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"pylint",
|
|
||||||
"pytest",
|
|
||||||
"pycryptodome",
|
"pycryptodome",
|
||||||
"pytest-asyncio",
|
|
||||||
"click",
|
"click",
|
||||||
"base58",
|
"base58",
|
||||||
"pymultihash",
|
"pymultihash",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user