[TIP] Tox & setup.py install_requires

Donald Stufft donald at stufft.io
Sat Feb 28 17:44:17 PST 2015


> 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.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20150228/b677fd11/attachment.pgp>


More information about the testing-in-python mailing list