| # content of: tox.ini , put in same dir as setup.py |
| [tox] |
| envlist = py3 |
| |
| [testenv] |
| # install pytest in the virtualenv where commands will be executed |
| deps = pytest |
| pytest-mock |
| platform = linux|darwin |
| extras = tests |
| setenv = |
| PIP_EXTRA_INDEX_URL = {toxinidir}/repo/simple |
| passenv = * |
| commands = |
| # NOTE: you can run any command line tool here - not just tests |
| pytest |
| |
| [pytest] |
| norecursedirs = docs *.egg-info .git src js venv py2 py.tox |
| log_format = %(asctime)s {%(pathname)s:%(lineno)d} %(levelname)s %(message)s |
| log_date_format = %Y-%m-%d %H:%M:%S |
| log_level = INFO |
| # Enable log cli if you want to see logs as you go. |
| #log_cli = True |
| |