Python packaging: Generate a python file at installation time, have this work with tox
In the tox.ini-file of your project, you can add commands to be run in the test environments. A simple example looks something like this:
[tox]envlist = py27,py34,py35,py36[testenv]deps= pytest ; ... other dependenciescommands= pytest --basetemp={envtmpdir} {posargs} ; Add your command here?
Is it possible for you to add a command to make tox do what you want? (The command will be run for each of the environments).