-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Strict dependencies by groups #7421
Comments
This is 80% a duplicate of #1168, and also touches on #5037. I think you're also mixing in a request for groups that get written to the wheel metadata -- currently only the main group can ever end up in the built metadata. I'm going to close this as a duplicate, but feel free to ask questions about the other FRs and look for an issue for 'groups in metadata'/create a FR for that if it doesn't already exist. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
Seems that poetry, even if in dedicated groups, build the dependencies tree based on all groups.
Seems fair since, depending on your needs, you install just "lint" group, or "formatter" group or two groups, with main, without main, run those groups with only one python version in contrary to the package itself etc...
But, sometimes, it constrains the users and hit dependency hell even if they use a group only for test/lint etc... or doesn't let them use a recent version of a package because one of the packages require an old version for a cross dependency.
As an example, flake8 and its dependency on
importlib-metadata < 5
who constrains many packages.Having something similar as
depends_on = []
for groups to let the lock file be built based on group dependency and let users have more flexibility would be really convenient.As an example :
In this example :
importlib-metadata<5
) doesn't influence other packages in other groups if they don't depend on lintpoetry install --with lint
will fail becauselint
does not have main independs_on
poetry install --only typing
, it will installmain
too since it depends on itHope it will see the light in poetry someday and other users will welcome this Feature Request.
Regards,
The text was updated successfully, but these errors were encountered: