Search code examples
pythonpython-wheeltox

How do I configure tox so it produces a wheel?


According to the docs, tox creates "a source distribution of the current project by invoking python setup.py sdist".

How do I configure tox so it produces a wheel instead and then uses it for testing?:

python setup.py bdist_wheel --universal

Solution

  • tox 4

    Set package = wheel in tox configuration.


    tox 3

    There is a tox plugin that seems to do exactly that. I haven't tested it so I can't vouch for it personally:

    Alternatively you could read these discussions on this exact topic, there are some workarounds mentioned in there: