diff --git a/.travis.yml b/.travis.yml index 40e47f4..56d4b96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/examples/chat/chat.py b/examples/chat/chat.py index a820fce..83ac937 100755 --- a/examples/chat/chat.py +++ b/examples/chat/chat.py @@ -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' diff --git a/setup.py b/setup.py index 557ea86..420516d 100644 --- a/setup.py +++ b/setup.py @@ -17,10 +17,7 @@ setuptools.setup( platforms=["unix", "linux", "osx"], classifiers=classifiers, install_requires=[ - "pylint", - "pytest", "pycryptodome", - "pytest-asyncio", "click", "base58", "pymultihash",