Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
81c7d00c
Commit
81c7d00c
authored
Aug 31, 2022
by
David Hotham
Committed by
Bjorn Neergaard
Aug 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not every GroupCommand needs to be an EnvCommand
parent
59a38bd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
src/poetry/console/commands/group_command.py
+2
-2
src/poetry/console/commands/installer_command.py
+2
-1
src/poetry/console/commands/show.py
+2
-1
No files found.
src/poetry/console/commands/group_command.py
View file @
81c7d00c
...
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING
...
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING
from
cleo.helpers
import
option
from
cleo.helpers
import
option
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
poetry.console.commands.
env_command
import
Env
Command
from
poetry.console.commands.
command
import
Command
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
...
@@ -13,7 +13,7 @@ if TYPE_CHECKING:
...
@@ -13,7 +13,7 @@ if TYPE_CHECKING:
from
poetry.core.packages.project_package
import
ProjectPackage
from
poetry.core.packages.project_package
import
ProjectPackage
class
GroupCommand
(
Env
Command
):
class
GroupCommand
(
Command
):
@staticmethod
@staticmethod
def
_group_dependency_options
()
->
list
[
Option
]:
def
_group_dependency_options
()
->
list
[
Option
]:
return
[
return
[
...
...
src/poetry/console/commands/installer_command.py
View file @
81c7d00c
...
@@ -2,6 +2,7 @@ from __future__ import annotations
...
@@ -2,6 +2,7 @@ from __future__ import annotations
from
typing
import
TYPE_CHECKING
from
typing
import
TYPE_CHECKING
from
poetry.console.commands.env_command
import
EnvCommand
from
poetry.console.commands.group_command
import
GroupCommand
from
poetry.console.commands.group_command
import
GroupCommand
...
@@ -9,7 +10,7 @@ if TYPE_CHECKING:
...
@@ -9,7 +10,7 @@ if TYPE_CHECKING:
from
poetry.installation.installer
import
Installer
from
poetry.installation.installer
import
Installer
class
InstallerCommand
(
GroupCommand
):
class
InstallerCommand
(
GroupCommand
,
EnvCommand
):
def
__init__
(
self
)
->
None
:
def
__init__
(
self
)
->
None
:
# Set in poetry.console.application.Application.configure_installer
# Set in poetry.console.application.Application.configure_installer
self
.
_installer
:
Installer
|
None
=
None
self
.
_installer
:
Installer
|
None
=
None
...
...
src/poetry/console/commands/show.py
View file @
81c7d00c
...
@@ -6,6 +6,7 @@ from cleo.helpers import argument
...
@@ -6,6 +6,7 @@ from cleo.helpers import argument
from
cleo.helpers
import
option
from
cleo.helpers
import
option
from
packaging.utils
import
canonicalize_name
from
packaging.utils
import
canonicalize_name
from
poetry.console.commands.env_command
import
EnvCommand
from
poetry.console.commands.group_command
import
GroupCommand
from
poetry.console.commands.group_command
import
GroupCommand
...
@@ -30,7 +31,7 @@ def reverse_deps(pkg: Package, repo: Repository) -> dict[str, str]:
...
@@ -30,7 +31,7 @@ def reverse_deps(pkg: Package, repo: Repository) -> dict[str, str]:
return
required_by
return
required_by
class
ShowCommand
(
GroupCommand
):
class
ShowCommand
(
GroupCommand
,
EnvCommand
):
name
=
"show"
name
=
"show"
description
=
"Shows information about packages."
description
=
"Shows information about packages."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment