project.optional-dependencies and dependency-groups #3371
-
When I use pdm add --group, I noticed that during the process, pyproject.toml shows project.optional-dependencies, but it eventually changes to dependency-groups at the end. However, with this approach, when I try to install my package using mypackage[sub-item] after publishing, the installation fails. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm not sure what specific command you ran and what the project status is, can you provide it? |
Beta Was this translation helpful? Give feedback.
-
like this discussions I would like to have a pdm add --option option_name package |
Beta Was this translation helpful? Give feedback.
-
I have identified the reproduction steps for why pdm add -G does not add the group to optional-dependencies.
|
Beta Was this translation helpful? Give feedback.
pdm add --group does add to optional-dependencies, while pdm add --dev --group adds to dependency groups
Please clarify the problem before discussing the solution.