| 1 | [tox] |
| 2 | envlist = lint, packaging, py26, py27, py33, py34, py35, py36, py37 |
| 3 | skip_missing_interpreters = true |
| 4 | |
| 5 | [testenv] |
| 6 | deps= -r{toxinidir}/dev-requirements.txt |
| 7 | commands= |
| 8 | coverage run -m pytest tests/ |
| 9 | coverage report -m |
| 10 | coverage html |
| 11 | passenv = TRAVIS APPVEYOR |
| 12 | |
| 13 | [testenv:py26] |
| 14 | # Additional dependency on unittest2 for Python 2.6 |
| 15 | deps= |
| 16 | {[testenv]deps} |
| 17 | unittest2 |
| 18 | |
| 19 | [testenv:lint] |
| 20 | commands = |
| 21 | python -m pip install flake8 |
| 22 | flake8 --max-line-length 100 rfc6555.py |
| 23 | |
| 24 | [testenv:packaging] |
| 25 | commands = |
| 26 | check-manifest --ignore *.yml,.mention-bot,.appveyor*,.travis*,.github* |
| 27 | python setup.py check --metadata --restructuredtext --strict |