python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.43k stars 2.27k forks source link

enhance the dependency management capabilities of Poetry #9755

Open qxstriving opened 3 hours ago

qxstriving commented 3 hours ago

Issue Kind

Change in current behaviour

Description

Dear Poetry Team,

I hope this message finds you well. I am writing to propose a feature that I believe would greatly enhance the dependency management capabilities of Poetry, making it even more powerful and flexible.

Feature Request: Dependency Exclusion Background: Poetry is an excellent tool for managing Python dependencies, and it has significantly improved the way we handle project dependencies. However, one common challenge in dependency management is dealing with conflicting dependencies. This issue often arises when a package indirectly introduces a version of a dependency that conflicts with another package's requirements.

Proposal: To address this, I suggest adding a feature similar to what Maven offers, where users can explicitly exclude specific sub-dependencies during the installation of a package. This feature would allow users to fine-tune their dependency tree and avoid conflicts more effectively.

Adding support for excluding specific dependencies would be a valuable addition to Poetry, making it an even more robust and user-friendly tool. I believe this feature would be widely appreciated by the community and would help to streamline dependency management in complex projects.

Thank you for considering this request. I look forward to your thoughts and any feedback you may have.

Impact

no

Workarounds

no

finswimmer commented 2 hours ago

Probably a duplicate of #5330?