Commit 6c8ee09
committed
Only install Python package dependencies from relevant group
The "Poetry" tool is used to manage the project's Python package dependencies.
Dependencies might be classified into distinct categories. The most basic classification would be:
- Application dependencies: used by the project's applications
- Development dependencies: tools used in the development and maintenance of the project, but not by the application
By default, Poetry installs all non-optional dependencies. This can be inefficient in a case where a specific operation
is being performed, since a given operation might only require the dependencies from one category and so the
installation of dependencies from the other is pointless for that operation.
For this reason, Poetry allows the user to organize dependencies into arbitrary "groups", and to specify which groups
should be installed.
The Python package installation task is hereby updated to allow dependency groups to be specified, and the calls to that
task updated to specify the groups they require.1 parent 03636cb commit 6c8ee09
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
380 | 384 | | |
381 | 385 | | |
382 | 386 | | |
383 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
384 | 391 | | |
385 | 392 | | |
386 | 393 | | |
387 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
388 | 398 | | |
389 | 399 | | |
390 | 400 | | |
| |||
426 | 436 | | |
427 | 437 | | |
428 | 438 | | |
| 439 | + | |
| 440 | + | |
429 | 441 | | |
430 | 442 | | |
431 | 443 | | |
| |||
0 commit comments