File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,15 @@ Some solutions and their drawbacks:
23
23
dependencies),
24
24
- use ``PIP_CONSTRAINTS `` inside :ref: `set_env ` (tox will not know about the content of the constraint file and such
25
25
will not trigger a rebuild of the environment when its content changes),
26
- - specify the constraint file by extending the :ref: `install_command ` (tox will not know about the content of the
27
- constraint file and such will not trigger a rebuild of the environment when its content changes).
26
+ - specify the constraint file by extending the :ref: `install_command ` as in the following example
27
+ (tox will not know about the content of the constraint file and such will not trigger a rebuild of the environment
28
+ when its content changes).
29
+
30
+ .. code-block :: ini
31
+
32
+ [testenv:py39]
33
+ install_command = python -m pip install {opts} {packages} -c constraints.txt
34
+ extras = test
28
35
29
36
Note constraint files are a subset of requirement files. Therefore, it's valid to pass a constraint file wherever you
30
37
can specify a requirement file.
You can’t perform that action at this time.
0 commit comments