Skip to content

Commit

Permalink
restore default behavior of exporter (export only "default" group ins…
Browse files Browse the repository at this point in the history
…tead of all non-optional dependencies)
  • Loading branch information
radoering committed Apr 10, 2022
1 parent 4154d7b commit 1ee643a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/poetry_plugin_export/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,9 @@ def _export_requirements_txt(self, cwd: Path, output: IO | str) -> None:
content = ""
dependency_lines = set()

if self._groups is not None:
root = self._poetry.package.with_dependency_groups(
list(self._groups), only=True
)
else:
root = self._poetry.package.without_optional_dependency_groups()
root = self._poetry.package.with_dependency_groups(
list(self._groups or ["default"]), only=True
)

locked_repository = self._poetry.locker.locked_repository(True)

Expand Down

0 comments on commit 1ee643a

Please sign in to comment.