You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
First of all, as is a recently deployed feature, I didn't find anything in recent issues. If there is any existing issue, let me know.
In a newly created project, we are using the --top-level/-T to keep tracking of manually defined deps until we have some automation (like renovate), and we found a problem: the packages using extras are not being showed when the command poetry show -lT is executed.
In my example, the pyproject.toml is the following:
With those packages installed, if I run poetry show -l, this is the result:
aiohttp 3.8.4 3.8.4 Async http client/server framework (asyncio)
aiosignal 1.3.1 1.3.1 aiosignal: a list of registered asynchronous callbacks
async-timeout 4.0.2 4.0.2 Timeout context manager for asyncio programs
attrs 23.1.0 23.1.0 Classes Without Boilerplate
black 23.3.0 23.3.0 The uncompromising code formatter.
certifi 2023.5.7 2023.5.7 Python package for providing Mozilla's CA Bundle.
charset-normalizer 3.1.0 3.1.0 The Real First Universal Charset Detector. Open, modern and actively main...
click 8.1.3 8.1.3 Composable command line interface toolkit
frozenlist 1.3.3 1.3.3 A list-like structure which implements collections.abc.MutableSequence
idna 3.4 3.4 Internationalized Domain Names in Applications (IDNA)
multidict 6.0.4 6.0.4 multidict implementation
mypy-extensions 1.0.0 1.0.0 Type system extensions for programs checked with the mypy type checker.
packaging 23.1 23.1 Core utilities for Python packages
pathspec 0.11.1 0.11.1 Utility library for gitignore style pattern matching of file paths.
platformdirs 3.5.1 3.5.1 A small Python package for determining appropriate platform-specific dirs...
requests 2.31.0 2.31.0 Python HTTP for Humans.
urllib3 2.0.2 2.0.2 HTTP library with thread-safe connection pooling, file post, and more.
yarl 1.9.2 1.9.2 Yet another URL library
Seems very normal. But this is the result using the new flag (poetry show -lT):
requests 2.31.0 2.31.0 Python HTTP for Humans.
Using the verbose flag (poetry show -lT -vvv), seems like black is being detected, but not printed:
Source (PyPI): 1 packages found for aiohttp >=3.8.4
Source (PyPI): 1 packages found for aiosignal >=1.3.1
Source (PyPI): 1 packages found for async-timeout >=4.0.2
Source (PyPI): 1 packages found for attrs >=23.1.0
Source (PyPI): 1 packages found for black >=23.3.0
Source (PyPI): 1 packages found for certifi >=2023.5.7
Source (PyPI): 1 packages found for charset-normalizer >=3.1.0
Source (PyPI): 1 packages found for click >=8.1.3
Source (PyPI): 1 packages found for frozenlist >=1.3.3
Source (PyPI): 1 packages found for idna >=3.4
Source (PyPI): 1 packages found for multidict >=6.0.4
Source (PyPI): 1 packages found for mypy-extensions >=1.0.0
Source (PyPI): 1 packages found for packaging >=23.1
Source (PyPI): 1 packages found for pathspec >=0.11.1
Source (PyPI): 1 packages found for platformdirs >=3.5.1
Source (PyPI): 1 packages found for requests >=2.31.0
Source (PyPI): 1 packages found for urllib3 >=2.0.2
Source (PyPI): 1 packages found for yarl >=1.9.2
Is this a bug? Or maybe I didn't understand well the functionality.
The text was updated successfully, but these errors were encountered:
diff --git a/src/poetry/console/commands/show.py b/src/poetry/console/commands/show.py
index 090e5ca1..0a6952f1 100644
--- a/src/poetry/console/commands/show.py+++ b/src/poetry/console/commands/show.py@@ -320,7 +320,7 @@ lists all packages available."""
install_marker = ""
if show_top_level and not any(
- locked.is_same_package_as(r) for r in requires+ locked.satisfies(r) for r in requires
):
continue
-vvv
option) and have included the output below.Issue
First of all, as is a recently deployed feature, I didn't find anything in recent issues. If there is any existing issue, let me know.
In a newly created project, we are using the
--top-level
/-T
to keep tracking of manually defined deps until we have some automation (like renovate), and we found a problem: the packages usingextras
are not being showed when the commandpoetry show -lT
is executed.In my example, the
pyproject.toml
is the following:With those packages installed, if I run
poetry show -l
, this is the result:Seems very normal. But this is the result using the new flag (
poetry show -lT
):Using the verbose flag (
poetry show -lT -vvv
), seems likeblack
is being detected, but not printed:Is this a bug? Or maybe I didn't understand well the functionality.
The text was updated successfully, but these errors were encountered: