# content of: tox.ini , put in same dir as setup.py [tox] envlist = py37 # tox_pyenv_fallback=False [testenv] # install pytest in the virtualenv where commands will be executed deps = pytest -rrequirements.txt commands = # NOTE: you can run any command line tool here - not just tests python -V pytest tests