[tox] Put development dependencies into a dev-requirements.txt file
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 02 Jun 2016 09:41:24 +0200
changeset 11285 581b5b64b382
parent 11284 d4293b14c664
child 11286 0b38e373b985
[tox] Put development dependencies into a dev-requirements.txt file The latter being sourced in tox.ini. For now this contains references to hg repositories for some dependencies but under normal circumstances it should only contain pytest. This is useful when developping cubicweb itself without using tox but working with a virtualenv so that one can simply do: :: $ virtualenv --system-site-packages venv $ . venv/bin/activate $ pip install -r dev-requirements.txt $ python setup.py develop
dev-requirements.txt
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-requirements.txt	Thu Jun 02 09:41:24 2016 +0200
@@ -0,0 +1,3 @@
+pytest
+hg+https://hg.logilab.org/master/yams@20b43fb67201#egg=yams
+hg+https://hg.logilab.org/master/logilab/common@7ebacaa38380#egg=logilab-common
--- a/tox.ini	Thu Jun 02 10:27:34 2016 +0200
+++ b/tox.ini	Thu Jun 02 09:41:24 2016 +0200
@@ -9,8 +9,7 @@
 whitelist_externals =
   /usr/bin/touch
 deps =
-  hg+https://hg.logilab.org/master/yams@20b43fb67201#egg=yams
-  hg+https://hg.logilab.org/master/logilab/common@7ebacaa38380#egg=logilab-common
+  -rdev-requirements.txt
   py34: -e.
   cubicweb: -r{toxinidir}/cubicweb/test/requirements.txt
   devtools: -r{toxinidir}/cubicweb/devtools/test/requirements.txt
@@ -22,7 +21,6 @@
   sobjects: -r{toxinidir}/cubicweb/sobjects/test/requirements.txt
   web: -r{toxinidir}/cubicweb/web/test/requirements.txt
   wsgi: -r{toxinidir}/cubicweb/wsgi/test/requirements.txt
-  pytest
 commands =
   py34-cubicweb: touch {envdir}/share/cubicweb/cubes/__init__.py
   py34-server: touch {envdir}/share/cubicweb/cubes/__init__.py