[TIP] Tox & setup.py install_requires

holger krekel holger at merlinux.eu
Thu Mar 5 00:13:41 PST 2015


On Sat, Feb 28, 2015 at 20:44 -0500, Donald Stufft wrote:
> > On Feb 28, 2015, at 8:37 PM, Tres Seaver <tseaver at palladion.com> wrote:
> > 
> > Signed PGP part
> > On 02/27/2015 09:36 AM, holger krekel wrote:
> > > On Wed, Feb 25, 2015 at 18:53 -0500, Randy Syring wrote:
> > >> Can tox be configured to install dependencies based on what is
> > >> listed in setup.py `install_requires` and `extras_require`?
> > >>
> > >> Thanks.
> > >
> > > Not sure if i understand correctly but tox.ini provides no means to
> > > reference those metadata entries.  If you let tox install your package
> > > this will install the ``install_requires`` dependencies, however.
> > > What's the issue you are having?
> > 
> > Doesn't tox install the sdist using `pip install --no-deps`?  I've got a
> > bunch of redundant dependencies listed in tox.ini files if I'm wrong
> > about this.
> > 
> 
> As far as I’m aware, when creating a virtual environment it will install with
> deps, but when re-using a virtual environment it will use —no-deps as an
> optimization.

Btw, if you issue "tox -v" you'll see which commands get executed with
which flags so there is no "guessing" needed :)

holger (on travel, therefore short)

> ---
> Donald Stufft
> PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
> 



> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python


-- 
about me:    http://holgerkrekel.net/about-me/
contracting: http://merlinux.eu



More information about the testing-in-python mailing list