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
`tox` can be configured in multiple ways. It depends on what should be the code under test and which dependencies
98
99
should be installed.
99
100
100
-
#### Usecase#1
101
+
#### Use case#1
101
102
```ini
102
103
[tox]
103
-
isolated_build = true
104
104
105
105
[testenv]
106
106
deps =
@@ -112,10 +112,9 @@ commands =
112
112
`tox` will create an `sdist` package of the project and uses `pip` to install it in a fresh environment.
113
113
Thus, dependencies are resolved by `pip`.
114
114
115
-
#### Usecase#2
115
+
#### Use case#2
116
116
```ini
117
117
[tox]
118
-
isolated_build = true
119
118
120
119
[testenv]
121
120
allowlist_externals = poetry
@@ -126,13 +125,12 @@ commands =
126
125
```
127
126
128
127
`tox` will create an `sdist` package of the project and uses `pip` to install it in a fresh environment.
129
-
Thus, dependencies are resolved by `pip` in the first place. But afterwards we run Poetry,
128
+
Thus, dependencies are resolved by `pip` in the first place. But afterward we run Poetry,
130
129
which will install the locked dependencies into the environment.
131
130
132
-
#### Usecase#3
131
+
#### Use case#3
133
132
```ini
134
133
[tox]
135
-
isolated_build = true
136
134
137
135
[testenv]
138
136
skip_install = true
@@ -198,7 +196,7 @@ For example, if Poetry builds a distribution for a project that uses a version t
198
196
199
197
### Poetry busts my Docker cache because it requires me to COPY my source files in before installing 3rd party dependencies
200
198
201
-
By default running `poetry install ...` requires you to have your source files present (both the "root" package and any directory path dependencies you might have).
199
+
By default, running `poetry install ...` requires you to have your source files present (both the "root" package and any directory path dependencies you might have).
202
200
This interacts poorly with Docker's caching mechanisms because any change to a source file will make any layers (subsequent commands in your Dockerfile) re-run.
203
201
For example, you might have a Dockerfile that looks something like this:
0 commit comments