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

feat: in show {package} output, clarify meaning of 'required by' entries #9750

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
2 changes: 1 addition & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ dependencies
- pytzdata >=2017.2.2

required by
- calendar >=1.4.0
- calendar requires >=1.4.0
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion src/poetry/console/commands/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _display_single_package_information(
self.line("")
self.line("<info>required by</info>")
for parent, requires_version in required_by.items():
self.line(f" - <c1>{parent}</c1> <b>{requires_version}</b>")
self.line(f" - <c1>{parent}</c1> requires <b>{requires_version}</b>")

return 0

Expand Down
2 changes: 1 addition & 1 deletion tests/console/commands/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ def test_show_required_by_deps(
- msgpack-python >=0.5 <0.6

required by
- pendulum >=0.2.0 <0.3.0
- pendulum requires >=0.2.0 <0.3.0
""".splitlines()
actual = [line.rstrip() for line in tester.io.fetch_output().splitlines()]
assert actual == expected
Expand Down
Loading