-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
pdm install now always installs optional dependencies? (extras) #1863
Comments
By the way An alternative would be to add a So my conclusion is that we should have the following behavior:
Finally, the
|
More such options will add to the confusion. I will just revert this behavior so that users can choose to include the optional groups. But in the future, we would like to change the options to |
I understand, reverting to the previous behavior sounds good to me 🙂
Orthogonal to Poetry 😄? This was the initial proposal I made there indeed haha, funny. Yeah the |
This isn't the case at least from my observation, if no |
Yeah I think my lock file contained all groups. I thought |
The behavior change here, is when you doesn't give any dependency selection option, PDM will install what is locked in the lockfile. There is a way to not install the optional dependencies though: |
@frostming |
The docs need update. Yeah when no options are given, all locked groups will be installed. You can pass some flags to select or unselect some groups. |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
pdm install
with optional dependencies specified in pyproject.toml.Actual behavior
PDM installs all optional dependencies, while it didn't before.
Expected behavior
I expect PDM not to install optional dependencies (extras) without me explicitly asking for it (with
-G :all
or-G myextra
), since there's no way to explicitly exclude them.Environment Information
The text was updated successfully, but these errors were encountered: