[TIP] [tox] how to specify which "extras" to install when testing my package
holger krekel
holger at merlinux.eu
Tue Dec 13 01:09:10 PST 2011
On Tue, Dec 13, 2011 at 07:34 +0000, 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?
These days tox unconditionally uses "pip" to install packages.
Unless pip supports this formatting it will not work.
> >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?
Depends - one perequisite is to have a proper issue filed.
Myself i can't promise a timeline but i can imagine giving the feature a
try soonish.
holger
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
> - http://www.simplistix.co.uk
>
More information about the testing-in-python
mailing list