daphne/tox.ini
Maik Hoepfel 51ffbca62a Test against Python 3.4 and multiple Twisted versions
This commit adds tox to be able to test against different dependencies
locally. We agreed that Python 3.4 should be supported across all Channels
projects, so it is also added with this commit.

Furthermore, I think it makes sense to support a broad range of Twisted
releases, as users of daphne are not unlikely to have other Twisted code
running. It's not feasible to test against all releases since 16.0, and
it would require constant maintenance to add new releases as they come
out. So I opted to keep things simple for now, and only test against the
oldest supported and the current Twisted release.

I did consider @jpic's great idea from
https://github.com/django/daphne/pull/19 to just use tox to avoid having
to duplicate the dependency matrix. But it does lead to slower test runs
as it bypasses Travis' caching, and is slightly more verbose.
2017-01-30 16:16:25 +01:00

9 lines
218 B
INI

# 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