summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-07-11 11:47:44 -0400
committerMonty Taylor <mordred@inaugust.com>2013-07-11 11:47:44 -0400
commit3a3e11c0b4e76f0c96184bd1b02889b6d7da2198 (patch)
tree3d2a4d691ac4f8ae0c7c144744a792af20c6d02c /doc
parentdf4e4dbdae3cba3cd096787846f2b54111f9de28 (diff)
downloadtox-3a3e11c0b4e76f0c96184bd1b02889b6d7da2198.tar.gz
Add example documentation for usedevelop
Diffstat (limited to 'doc')
-rw-r--r--doc/example/general.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/example/general.txt b/doc/example/general.txt
index 2cee354..0b3a5ff 100644
--- a/doc/example/general.txt
+++ b/doc/example/general.txt
@@ -144,4 +144,37 @@ section, for example::
[testenv:py27]
basepython=/my/path/to/python2.7
+Avoiding expensive sdist
+------------------------
+
+Some projects are large enough that running and sdist, followed by
+an install everytime can be prohibitively costly. To solve this,
+there are two different options you can add to the ``tox`` section. First,
+you can simply ask tox to please not make an sdist::
+
+ [tox]
+ skipsdist=True
+
+If you do this, your local software package will not be installed into
+the virtualenv. You should probably be ok with that, or take steps
+to deal with it in your commands section::
+
+ [testenv]
+ commands =
+ python setup.py develop
+ py.test
+
+Running setup.py develop is a common enough model that it has its own option::
+
+ [tox]
+ usedevelop=True
+
+Which will set ``skipsdist`` to True and then perform the ``setup.py develop``
+step at the place where ``tox`` normally perfoms the installation of the sdist.
+Specifically, it actually runs ``pip install -e .`` behind the scenes, which
+itself calls ``setup.py develop``.
+
+There is an optimization coded in to not bother re-running the command if
+``$projectname.egg-info`` is newer than ``setup.py`` or ``setup.cfg``.
+
.. include:: ../links.txt