[TIP] suggestion to change tox's --pre defaults

Carl Meyer carl at oddbird.net
Mon Oct 6 16:52:16 PDT 2014


On 10/03/2014 01:09 AM, holger krekel wrote:
> I'd like to avoid the deprecation step and land at something
> like this directly (with tox-1.9):
> 
> - a testenv setting ``pip_pre``, defaulting to False. If True
>   it will add "--pre" to {opts}.
> 
> - a new option "--pre" to force adding "--pre" to {opts}
>   (overriding any pip_pre settings)
> 
> - (unsure) a new option "--final" to force ``pip_pre`` to
>   be False (overriding any pip_pre settings)
> 
> - both options should be clear in their help that they only
>   are effective if you use pip in your install_command.
> 
> - CHANGELOG and release announement note that the default 
>   for invoking the default pip installer changed.
> 
> Given the reactions here and on twitter (virtually everybody
> expects tox to use the pip defaults these days), i guess tox-1.9
> is not going to practically break for many.
> 
> If everybody is fine with that and Carl still offers to write
> a little PR implementing it, I'd be glad to review and incorporate it.

https://bitbucket.org/hpk42/tox/pull-request/123/add-pre-and-testenv-pip_pre-options-no-pre/diff

Carl



More information about the testing-in-python mailing list