python-poetry / python-poetry/poetry
poetry show -o / poetry show -l output loses expected functionality if line overruns the terminal width
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption). -
OS version and name: MacOS 10.15.6
-
Poetry version: 1.1.0b2
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/mikenerone/ca037adbb105239cc4c82043a7bdf09c
Issue
Adding a URL dependency breaks the functionality of poetry show -l and poetry show -o, causing them both to have name-only output similar to bare poetry show.
mikenerone@mnerone ~/dev/superapp $ poetry show -l # Starting with working normally
atomicwrites 1.4.0 1.4.0 Atomic file writes.
attrs 20.1.0 20.1.0 Classes Without Boilerplate
colorama 0.4.3 0.4.3 Cross-platform colored terminal text.
more-itertools 8.5.0 8.5.0 More routines for operating on iterables, beyond itertools
packaging 20.4 20.4 Core utilities for Python packages
pluggy 0.13.1 0.13.1 plugin and hook calling mechanisms for python
py 1.9.0 1.9.0 library with cross-python path, ini-parsing, io, code, log facilities
pyparsing 2.4.7 2.4.7 Python parsing module
pytest 5.4.3 6.0.1 pytest: simple powerful testing with Python
six 1.15.0 1.15.0 Python 2 and 3 compatibility utilities
wcwidth 0.2.5 0.2.5 Measures the displayed width of unicode strings in a terminal
mikenerone@mnerone ~/dev/superapp $ poetry show -o
pytest 5.4.3 6.0.1 pytest: simple powerful testing with Python
mikenerone@mnerone ~/dev/superapp $ poetry add pycowsay # Add a normal dep continues to work
Using version ^0.0.0 for pycowsay
Updating dependencies
Resolving dependencies... (0.1s)
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing pycowsay (0.0.0.1)
mikenerone@mnerone ~/dev/superapp $ poetry show -l
atomicwrites 1.4.0 1.4.0 Atomic file writes.
attrs 20.1.0 20.1.0 Classes Without Boilerplate
colorama 0.4.3 0.4.3 Cross-platform colored terminal text.
more-itertools 8.5.0 8.5.0 More routines for operating on iterables, beyond itertools
packaging 20.4 20.4 Core utilities for Python packages
pluggy 0.13.1 0.13.1 plugin and hook calling mechanisms for python
py 1.9.0 1.9.0 library with cross-python path, ini-parsing, io, code, log facilities
pycowsay 0.0.0.1 0.0.0.1
pyparsing 2.4.7 2.4.7 Python parsing module
pytest 5.4.3 6.0.1 pytest: simple powerful testing with Python
six 1.15.0 1.15.0 Python 2 and 3 compatibility utilities
wcwidth 0.2.5 0.2.5 Measures the displayed width of unicode strings in a terminal
mikenerone@mnerone ~/dev/superapp $ poetry show -o
pytest 5.4.3 6.0.1 pytest: simple powerful testing with Python
mikenerone@mnerone ~/dev/superapp $ poetry remove pycowsay
Updating dependencies
Resolving dependencies... (0.1s)
Writing lock file
Package operations: 0 installs, 0 updates, 1 removal
• Removing pycowsay (0.0.0.1)
mikenerone@mnerone ~/dev/superapp $ poetry add https://files.pythonhosted.org/packages/ee/a6/8fb6d569c59e0e3622f10ae39594cbc57f8e5f36517291e221bd156002ef/pycowsay-0.0.0.1-py3-none-any.whl # But add a URL dep breaks show -l/-o output
Updating dependencies
Resolving dependencies... (0.2s)
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing pycowsay (0.0.0.1 https://files.pythonhosted.org/packages/ee/a6/8fb6d569c59e0e3622f10ae39594cbc57f8e5f36517291e221bd156002ef/pycowsay-0.0.0.1-py3-none-any.whl)
mikenerone@mnerone ~/dev/superapp $ poetry show -l
atomicwrites
attrs
colorama
more-itertools
packaging
pluggy
py
pycowsay
pyparsing
pytest
six
wcwidth
mikenerone@mnerone ~/dev/superapp $ poetry show -o
pycowsay
pytest
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with poetry show -l and poetry show -o after adding the provided URL dependency, then trace the CLI code that formats package listings and determines terminal-width behavior. Done means both commands retain their columns and descriptions when a URL dependency is present, while the existing output remains unchanged for normal dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100