Hi,
I have a question regarding the configuration of dependencies in pyproject.toml.
I’ve noticed that both optional-dependencies and dependency-groups seem to handle optional dependencies in a similar way, so I'm a bit confused about how they differ and when each should be used. Could you clarify the following points?
Any insights or examples you could provide would be really helpful.
Thanks in advance for your time and assistance!
Hi,
I have a question regarding the configuration of dependencies in
pyproject.toml.I’ve noticed that both
optional-dependenciesanddependency-groupsseem to handle optional dependencies in a similar way, so I'm a bit confused about how they differ and when each should be used. Could you clarify the following points?Purpose: What is the intended purpose of
optional-dependenciesversusdependency-groups?Usage Scenarios: In what specific scenarios would it make sense to use one over the other?
Any insights or examples you could provide would be really helpful.
Thanks in advance for your time and assistance!