feat: add extras, no-directory, no-root options
Add the following options from Poetry installer command:
-
--no-root -
--no-directory -
-E, --extras=EXTRAS -
--all-extras
These are useful for creating different combinations of archives and Docker layers.
Extras logic is a simplified variant of the full install command, but works for all practical cases. Maybe Poetry could share them as easily as the group options.
just came across the missing "no-root" flag thing when setting up a container build. This would reduce the turn-arround times when dependencies can go to a separate Docker layer.
I created a feature request for this #153 to support the change.
This has to become important enough for someone to address the review comments.
FYI all, I have no interest in porting this to Poetry 2.x series. The revision seen here is still being used in some private projects that are using Poetry 1.8 (soon to receive bigger refactoring / using other approaches).