diff --git a/.gitignore b/.gitignore index bbe7d22..33dfc28 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __pycache__ dist/ build/ +/.tox diff --git a/.travis.yml b/.travis.yml index 6f34248..5ee9ae1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,16 @@ sudo: false + language: python + python: - "2.7" + - "3.4" - "3.5" -install: - - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install unittest2; fi - - pip install asgiref twisted autobahn -script: if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then python -m unittest2; else python -m unittest; fi + +env: + - TWISTED_RELEASE="twisted" + - TWISTED_RELEASE="twisted==16.0.0" + +install: pip install $TWISTED_RELEASE -e . + +script: python -m unittest discover diff --git a/setup.py b/setup.py index 462cece..d0e0a92 100755 --- a/setup.py +++ b/setup.py @@ -40,6 +40,7 @@ setup( 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..7554262 --- /dev/null +++ b/tox.ini @@ -0,0 +1,8 @@ +# We test against the oldest supported Twisted release, and the current release. +[tox] +envlist = py{27,34,35}-twisted-{old,new} + +[testenv] +deps = + twisted-old: twisted==16.0.0 +commands = python -m unittest discover