ihatemoney/tox.ini
Baptiste Jonglez e37d0a98ff Pin dependencies to ensure that pip will use the exact version of deps
This is a backport / adaptation of 5d3266873e (#558), accounting for the
fact that we are not using setup.cfg.
2020-06-07 21:22:48 +02:00

36 lines
643 B
INI

[tox]
envlist = py37,py36,py35,py34,py27,docs,lint
skip_missing_interpreters = True
[testenv]
commands =
python --version
py.test --pyargs ihatemoney.tests.tests
deps =
-e.[dev]
# To be sure we are importing ihatemoney pkg from pip-installed version
changedir = /tmp
[testenv:docs]
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
-rdocs/requirements.txt
changedir = {toxinidir}
[testenv:lint]
commands = flake8 ihatemoney
changedir = {toxinidir}
[flake8]
exclude = migrations
max_line_length = 100
[travis]
python =
2.7: py27
3.5: py35
3.6: py36, docs, lint
3.7: py37