Skip to content

Commit

Permalink
feat!: drop deprecated '--default' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer committed Aug 22, 2022
1 parent 5d18750 commit e6e6eec
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/poetry/console/commands/group_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ def _group_dependency_options() -> list[Option]:
flag=False,
multiple=True,
),
option(
"default",
None,
"Only include the main dependencies. (<warning>Deprecated</warning>)",
),
option(
"only",
None,
Expand Down Expand Up @@ -85,7 +80,6 @@ def activated_groups(self) -> set[str]:
}

for opt, new, group in [
("default", "only", MAIN_GROUP),
("no-dev", "only", MAIN_GROUP),
("dev", "with", "dev"),
]:
Expand Down
1 change: 0 additions & 1 deletion tests/console/commands/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def tester(
("--with bam --without bam", {MAIN_GROUP, "foo", "bar", "baz", "bim"}),
("--with foo --without foo", {MAIN_GROUP, "bar", "baz", "bim"}),
# deprecated options
("--default", {MAIN_GROUP}),
("--no-dev", {MAIN_GROUP}),
],
)
Expand Down
6 changes: 0 additions & 6 deletions tests/console/commands/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ def _configure_project_with_groups(poetry: Poetry, installed: Repository) -> Non
f"--only {MAIN_GROUP}",
"""\
cachy 0.1.0 Cachy package
""",
),
(
"--default",
"""\
cachy 0.1.0 Cachy package
""",
),
(
Expand Down

0 comments on commit e6e6eec

Please sign in to comment.