Skip to content

Commit

Permalink
Remove references to --dev-only install option
Browse files Browse the repository at this point in the history
According to
#4864 (comment):
> The `--dev-only` option was never available in a release, but was already
> available in the master branch. Because it's a feature we will probably not
> backport this to the 1.1 branch.

Given that the option was only ever present when installing Poetry from master
and was never available as part of a release, I think it's clearer to just
remove all references to it rather than include a deprecation notice that would
only be relevant to a tiny fraction of Poetry users.
  • Loading branch information
lafrenierejm authored and neersighted committed Jun 5, 2022
1 parent ca76e11 commit 865aa94
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
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

0 comments on commit 865aa94

Please sign in to comment.