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
30c582d8
Commit
30c582d8
authored
May 30, 2022
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove poetry core compat code (MAIN_GROUP)
parent
c68011d8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
55 deletions
+11
-55
src/poetry/console/commands/add.py
+2
-8
src/poetry/console/commands/group_command.py
+1
-6
src/poetry/console/commands/remove.py
+2
-8
src/poetry/console/commands/self/install.py
+1
-5
src/poetry/factory.py
+1
-6
src/poetry/puzzle/solver.py
+1
-5
tests/console/commands/test_install.py
+1
-5
tests/console/commands/test_show.py
+1
-6
tests/installation/test_installer.py
+1
-6
No files found.
src/poetry/console/commands/add.py
View file @
30c582d8
...
@@ -7,18 +7,12 @@ from typing import cast
...
@@ -7,18 +7,12 @@ from typing import cast
from
cleo.helpers
import
argument
from
cleo.helpers
import
argument
from
cleo.helpers
import
option
from
cleo.helpers
import
option
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
tomlkit.toml_document
import
TOMLDocument
from
tomlkit.toml_document
import
TOMLDocument
from
poetry.utils.helpers
import
canonicalize_name
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.console.commands.init
import
InitCommand
from
poetry.console.commands.init
import
InitCommand
from
poetry.console.commands.installer_command
import
InstallerCommand
from
poetry.console.commands.installer_command
import
InstallerCommand
from
poetry.utils.helpers
import
canonicalize_name
class
AddCommand
(
InstallerCommand
,
InitCommand
):
class
AddCommand
(
InstallerCommand
,
InitCommand
):
...
...
src/poetry/console/commands/group_command.py
View file @
30c582d8
...
@@ -3,12 +3,7 @@ from __future__ import annotations
...
@@ -3,12 +3,7 @@ from __future__ import annotations
from
typing
import
TYPE_CHECKING
from
typing
import
TYPE_CHECKING
from
cleo.helpers
import
option
from
cleo.helpers
import
option
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.console.commands.env_command
import
EnvCommand
from
poetry.console.commands.env_command
import
EnvCommand
...
...
src/poetry/console/commands/remove.py
View file @
30c582d8
...
@@ -4,17 +4,11 @@ from typing import Any
...
@@ -4,17 +4,11 @@ from typing import Any
from
cleo.helpers
import
argument
from
cleo.helpers
import
argument
from
cleo.helpers
import
option
from
cleo.helpers
import
option
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
tomlkit.toml_document
import
TOMLDocument
from
tomlkit.toml_document
import
TOMLDocument
from
poetry.utils.helpers
import
canonicalize_name
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.console.commands.installer_command
import
InstallerCommand
from
poetry.console.commands.installer_command
import
InstallerCommand
from
poetry.utils.helpers
import
canonicalize_name
class
RemoveCommand
(
InstallerCommand
):
class
RemoveCommand
(
InstallerCommand
):
...
...
src/poetry/console/commands/self/install.py
View file @
30c582d8
from
__future__
import
annotations
from
__future__
import
annotations
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.console.commands.install
import
InstallCommand
from
poetry.console.commands.install
import
InstallCommand
from
poetry.console.commands.self.self_command
import
SelfCommand
from
poetry.console.commands.self.self_command
import
SelfCommand
...
...
src/poetry/factory.py
View file @
30c582d8
...
@@ -11,6 +11,7 @@ from typing import cast
...
@@ -11,6 +11,7 @@ from typing import cast
from
cleo.io.null_io
import
NullIO
from
cleo.io.null_io
import
NullIO
from
poetry.core.factory
import
Factory
as
BaseFactory
from
poetry.core.factory
import
Factory
as
BaseFactory
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
poetry.core.packages.project_package
import
ProjectPackage
from
poetry.core.packages.project_package
import
ProjectPackage
from
poetry.core.toml.file
import
TOMLFile
from
poetry.core.toml.file
import
TOMLFile
from
tomlkit.toml_document
import
TOMLDocument
from
tomlkit.toml_document
import
TOMLDocument
...
@@ -22,12 +23,6 @@ from poetry.plugins.plugin_manager import PluginManager
...
@@ -22,12 +23,6 @@ from poetry.plugins.plugin_manager import PluginManager
from
poetry.poetry
import
Poetry
from
poetry.poetry
import
Poetry
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
pathlib
import
Path
from
pathlib
import
Path
...
...
src/poetry/puzzle/solver.py
View file @
30c582d8
...
@@ -9,11 +9,7 @@ from typing import FrozenSet
...
@@ -9,11 +9,7 @@ from typing import FrozenSet
from
typing
import
Tuple
from
typing
import
Tuple
from
typing
import
TypeVar
from
typing
import
TypeVar
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.mixology
import
resolve_version
from
poetry.mixology
import
resolve_version
from
poetry.mixology.failure
import
SolveFailure
from
poetry.mixology.failure
import
SolveFailure
...
...
tests/console/commands/test_install.py
View file @
30c582d8
...
@@ -5,13 +5,9 @@ from typing import TYPE_CHECKING
...
@@ -5,13 +5,9 @@ from typing import TYPE_CHECKING
import
pytest
import
pytest
from
poetry.core.masonry.utils.module
import
ModuleOrPackageNotFound
from
poetry.core.masonry.utils.module
import
ModuleOrPackageNotFound
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
cleo.testers.command_tester
import
CommandTester
from
cleo.testers.command_tester
import
CommandTester
from
pytest_mock
import
MockerFixture
from
pytest_mock
import
MockerFixture
...
...
tests/console/commands/test_show.py
View file @
30c582d8
...
@@ -4,14 +4,9 @@ from typing import TYPE_CHECKING
...
@@ -4,14 +4,9 @@ from typing import TYPE_CHECKING
import
pytest
import
pytest
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
poetry.core.packages.dependency_group
import
DependencyGroup
from
poetry.core.packages.dependency_group
import
DependencyGroup
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.factory
import
Factory
from
poetry.factory
import
Factory
from
tests.helpers
import
get_package
from
tests.helpers
import
get_package
...
...
tests/installation/test_installer.py
View file @
30c582d8
...
@@ -15,17 +15,12 @@ from cleo.io.null_io import NullIO
...
@@ -15,17 +15,12 @@ from cleo.io.null_io import NullIO
from
cleo.io.outputs.buffered_output
import
BufferedOutput
from
cleo.io.outputs.buffered_output
import
BufferedOutput
from
cleo.io.outputs.output
import
Verbosity
from
cleo.io.outputs.output
import
Verbosity
from
deepdiff
import
DeepDiff
from
deepdiff
import
DeepDiff
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
from
poetry.core.packages.dependency_group
import
DependencyGroup
from
poetry.core.packages.dependency_group
import
DependencyGroup
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.project_package
import
ProjectPackage
from
poetry.core.packages.project_package
import
ProjectPackage
from
poetry.core.toml.file
import
TOMLFile
from
poetry.core.toml.file
import
TOMLFile
try
:
from
poetry.core.packages.dependency_group
import
MAIN_GROUP
except
ImportError
:
MAIN_GROUP
=
"default"
from
poetry.factory
import
Factory
from
poetry.factory
import
Factory
from
poetry.installation
import
Installer
as
BaseInstaller
from
poetry.installation
import
Installer
as
BaseInstaller
from
poetry.installation.executor
import
Executor
as
BaseExecutor
from
poetry.installation.executor
import
Executor
as
BaseExecutor
...
...
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