feat(console/commands): add --all-groups#5461
feat(console/commands): add --all-groups#5461lovesegfault wants to merge 1 commit intopython-poetry:masterfrom
Conversation
|
One alternative to this would be to treat I felt like a separate CLI flag was less magic though. |
|
Hm, I guess one cool thing about allowing poetry install --with=all --without='foo,bar'Which reads less awkwardly than poetry install --all-groups --without='foo,bar'Another idea: perhaps @abn Thoughts? |
|
I would like to understand how common this use case is. Another change I was thinking was to allow for a group to extend from another. If we had something like that I wonder if this is still something that makes sense. [tool.poetry.group.foo.dependencies]
pytest = "*"
[tool.poetry.group.bar]
extends = ["foo"]
[tool.poetry.group.bar.dependencies]
aiohttp = "*" |
I like that a lot, I'm going to give it a shot :) |
|
Deploy preview for website ready! Built with commit 9dca875. |
|
I'm guessing this is now stale, but FWIW I would like this functionality as well. I have 4-5 groups, and in some cases I always want to install all of them. This would be easier than having to update CI scripts or what not if a group is ever added. |
|
is this issue dead? has it been succeeded by anything? i could also use this functionality. |
|
I think it's fair to be able to install all groups without having to specify them all. How about extending |
|
that's workable for me. what wound be the stain getting this implemented? |
|
I also have a use-case for it, sad that this is not implemented. |
|
A trivial use case: To keep an overview over development dependencies, I like to organize them by groups. (linters, formatters, typing, testing, documentation, etc.) Otherwise, it just becomes an unwieldy long list. |
|
Same for me, any chance to reopen this? |
|
Just to add on here that a classic use case (at least within our org) is to ensure that versions are up to date for all groups. This is done both in a CI/CD pipeline to ensure our lock files are updated with |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: N/A
This adds a utility flag
--all-groupstoinstallwhich enables all availabledependency groups.
It's handy if you have lots of groups which you almost always want.