You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/example/basic.txt
+25-7
Original file line number
Diff line number
Diff line change
@@ -82,20 +82,38 @@ configuration::
82
82
83
83
.. _multiindex:
84
84
85
-
depending on requirements.txt
85
+
depending on requirements.txt or defining constraints
86
86
-----------------------------------------------
87
87
88
88
.. versionadded:: 1.6.1
89
89
90
-
(experimental) If you have a ``requirements.txt`` file
91
-
you can add it to your ``deps`` variable like this::
90
+
(experimental) If you have a ``requirements.txt`` file or a ``constraints.txt`` file you can add it to your ``deps`` variable like this:
91
+
92
+
.. code-block:: ini
92
93
93
94
deps = -rrequirements.txt
94
95
95
-
All installation commands are executed using ``{toxinidir}``
96
-
(the directory where ``tox.ini`` resides) as the current
97
-
working directory. Therefore, the underlying ``pip`` installation
98
-
will assume ``requirements.txt`` to exist at ``{toxinidir}/requirements.txt``.
96
+
or
97
+
98
+
.. code-block:: ini
99
+
100
+
deps = -cconstraints.txt
101
+
102
+
or
103
+
104
+
.. code-block:: ini
105
+
106
+
deps = -rrequirements.txt -cconstraints.txt
107
+
108
+
All installation commands are executed using ``{toxinidir}`` (the directory where ``tox.ini`` resides) as the current working directory.
109
+
Therefore, the underlying ``pip`` installation will assume ``requirements.txt`` or ``constraints.txt`` to exist at ``{toxinidir}/requirements.txt`` or ``{toxinidir}/contrains.txt``.
110
+
111
+
This is actually a side effect that all elements of the dependency list is directly passed to ``pip``.
112
+
113
+
For more details on ``requirements.txt`` files or ``constraints.txt`` files please see:
0 commit comments