[TIP] merging requirements.txt with specified deps

Antony Seedhouse antony.seedhouse at gmail.com
Tue Jun 16 04:19:19 PDT 2015


Is there a way to "merge" tox deps with requirements.txt, without having to
split requirements.txt into multiple files (one per dep specified in
tox.ini) or other more complicated methods?

For example, I have a project with all current dependencies in
requirements.txt, and would like to test it with multiple versions of django

I would like my deps = to look like:

deps =
  -r../requirements.txt
  django17: Django>=1.7,<1.8
  django18: Django>=1.8,<1.9

This would tell tox to overwrite the Django version in requirements.txt
with the environment specified version

Currently this errors: Double requirement given: Django==1.7.7 (from -r
../requirements.txt (line 3)) (already in Django<1.8,>=1.7, name='Django')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20150616/a9e7e9e6/attachment.htm>


More information about the testing-in-python mailing list