Tox

Tips and tricks for using tox.

Testing in-development packages

Test local, in-development packages using tox's distshare feature:

  1. Run tox for the development package. Ensure sdist builds are enabled in tox.ini:

    skipsdist = False
    

    or

    # skipdist = True
    
  2. The package's sdist file is now available in ~/.tox/distshare/. You can use this file as a dependency by forcing two pip runs in tox.ini:

    deps=
        {distshare}/packagename*.zip
    commands=
        pip install -qr{toxinidir}/requirements.txt