diff --git a/src/poetry/core/packages/package.py b/src/poetry/core/packages/package.py index 0362923c3..459e1231b 100644 --- a/src/poetry/core/packages/package.py +++ b/src/poetry/core/packages/package.py @@ -200,11 +200,10 @@ def all_requires( """ Returns the default dependencies and group dependencies. """ - return self.requires + [ + return [ dependency for group in self._dependency_groups.values() for dependency in group.dependencies - if group.name != "default" ] def _get_author(self) -> Dict[str, Optional[str]]: