From 218689be7636fabec0e8000bb64fa66964d2813e Mon Sep 17 00:00:00 2001 From: David Hotham Date: Wed, 31 Aug 2022 12:19:59 +0100 Subject: [PATCH] export does not need a virtual environment --- src/poetry_plugin_export/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/poetry_plugin_export/command.py b/src/poetry_plugin_export/command.py index 5119eb0..6259c84 100644 --- a/src/poetry_plugin_export/command.py +++ b/src/poetry_plugin_export/command.py @@ -1,13 +1,13 @@ from __future__ import annotations from cleo.helpers import option -from poetry.console.commands.installer_command import InstallerCommand +from poetry.console.commands.group_command import GroupCommand from poetry.core.packages.dependency_group import MAIN_GROUP from poetry_plugin_export.exporter import Exporter -class ExportCommand(InstallerCommand): +class ExportCommand(GroupCommand): name = "export" description = "Exports the lock file to alternative formats." @@ -31,7 +31,7 @@ class ExportCommand(InstallerCommand): None, "Include development dependencies. (Deprecated)", ), - *InstallerCommand._group_dependency_options(), + *GroupCommand._group_dependency_options(), option( "extras", "E",