[TIP] [tox] how to specify which "extras" to install when testing my package

holger krekel holger at merlinux.eu
Tue Dec 13 01:43:09 PST 2011


On Tue, Dec 13, 2011 at 10:13 +0100, Ronny Pfannschmidt wrote:
> On 12/13/2011 08:34 AM, Chris Withers wrote:
> > On 13/12/2011 07:20, holger krekel wrote:
> >>> In order to run the tests, I need to install with a setuptools
> >>> "extras" requirements such as:
> >>>
> >>> easy_install testfixtures[test]
> >>>
> >>> How do I do that with Tox?
> >>
> >> As a hack you could try to list this install command in
> >> a "commands" section.
> > 
> > The hack I was going to try was specifying "testfixtures[test]" in the
> > deps section. Would that work?
> 
> no, pip doesn't support them, and there are no plans to support them,
> since distutils2/packaging will not have extra requirements at all

While pip and distutils2 may not support this the question remains
if to support using easy_install through a customizing "install_commands"
section.  I'd like to have tox useable in the real world not just in
a more ideal setting, at least if it isn't too much effort.

best,
holger

> > 
> >> A more proper fix is to introduce
> >> the customization of install commands, see also the other
> >> related recent TIP thread started by Andrew Dalke.
> > 
> > *nods* Are the changes discussed there likely to happen soon?
> > 
> > cheers,
> > 
> > Chris
> > 
> 
> 





More information about the testing-in-python mailing list