Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove references to --dev-only install option #5771

Merged
merged 1 commit into from
Jun 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ It's also possible to only install specific dependency groups by using the `only
poetry install --only test,docs
```

{{% note %}}
The `--dev-only` option is now deprecated. You should use the `--only dev` notation instead.
{{% /note %}}

See [Dependency groups]({{< relref "managing-dependencies#dependency-groups" >}}) for more information
about dependency groups.

Expand Down Expand Up @@ -231,7 +227,6 @@ option is used.
* `--extras (-E)`: Features to install (multiple values allowed).
* `--all-extras`: Install all extra features (conflicts with --extras).
* `--no-dev`: Do not install dev dependencies. (**Deprecated**)
* `--dev-only`: Only install dev dependencies. (**Deprecated**)
* `--remove-untracked`: Remove dependencies not presented in the lock file. (**Deprecated**)

{{% note %}}
Expand Down
1 change: 0 additions & 1 deletion src/poetry/console/commands/group_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def activated_groups(self) -> set[str]:
("default", "only", MAIN_GROUP),
("no-dev", "only", MAIN_GROUP),
("dev", "with", "dev"),
("dev-only", "without", MAIN_GROUP),
]:
if self.io.input.has_option(opt) and self.option(opt):
self.line_error(
Expand Down
6 changes: 0 additions & 6 deletions src/poetry/console/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ class InstallCommand(InstallerCommand):
"Do not install the development dependencies."
" (<warning>Deprecated</warning>)",
),
option(
"dev-only",
None,
"Only install the development dependencies."
" (<warning>Deprecated</warning>)",
),
option(
"sync",
None,
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 @@ -89,7 +89,6 @@ def tester(
# deprecated options
("--default", {MAIN_GROUP}),
("--no-dev", {MAIN_GROUP}),
("--dev-only", {"foo", "bar", "baz", "bim"}),
],
)
@pytest.mark.parametrize("with_root", [True, False])
Expand Down