6

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
Pablo
  • 983
  • 10
  • 24

1 Answers1

8

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:

sinoroc
  • 18,409
  • 2
  • 39
  • 70
  • tox 4 has added support for wheels and is **not** compatible with `tox-wheel`. In tox 4 you can add `pacakge = wheel` to the `[testenv]` config in `tox.ini`. – Abid H. Mujtaba Jan 24 '23 at 21:31
  • @AbidH.Mujtaba Thanks for the info. I trust you, I updated the answer according to your suggestion without testing myself. – sinoroc Jan 25 '23 at 10:18