diff --git a/.gitignore b/.gitignore index 33dfc28..36f6607 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ __pycache__ dist/ build/ /.tox +.hypothesis +.cache diff --git a/.travis.yml b/.travis.yml index 5ee9ae1..f28a830 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,6 @@ env: - TWISTED_RELEASE="twisted" - TWISTED_RELEASE="twisted==16.0.0" -install: pip install $TWISTED_RELEASE -e . +install: pip install $TWISTED_RELEASE -e .[tests] script: python -m unittest discover diff --git a/setup.py b/setup.py index e5bf8a6..5d3147c 100755 --- a/setup.py +++ b/setup.py @@ -27,6 +27,9 @@ setup( 'twisted>=16.0', 'autobahn>=0.12', ], + extras_require={ + 'tests': ['hypothesis', 'tox'] + }, entry_points={'console_scripts': [ 'daphne = daphne.cli:CommandLineInterface.entrypoint', ]}, diff --git a/tox.ini b/tox.ini index 7554262..63d2bd0 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ envlist = py{27,34,35}-twisted-{old,new} [testenv] +extras = tests deps = twisted-old: twisted==16.0.0 commands = python -m unittest discover