-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
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: Any (tested on Fedora 32)
- Poetry version: 1.1.4
- Link of a Gist with the contents of your pyproject.toml file: inline below as it is small & simple enough
Issue
To reproduce, use the following pyproject.toml:
[tool.poetry]
name = "test"
version = "1.0"
description = "test"
authors = ["test"]
license = "test"
[tool.poetry.dependencies]
python = "^3.8"
xarray = "^0.16.1"
[tool.poetry.dev-dependencies]
pytest = "^6.1.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
then, when running poetry show --tree the output is correct, but when passing --no-dev the dev deps are still printed:
$ poetry show --tree --no-dev
pytest 6.1.1 pytest: simple powerful testing with Python
├── atomicwrites >=1.0
├── attrs >=17.4.0
├── colorama *
├── iniconfig *
├── packaging *
│ ├── pyparsing >=2.0.2
│ └── six *
├── pluggy >=0.12,<1.0
├── py >=1.8.2
└── toml *
xarray 0.16.1 N-D labeled arrays and datasets in Python
├── numpy >=1.15
└── pandas >=0.25
├── numpy >=1.15.4
├── python-dateutil >=2.7.3
│ └── six >=1.5
└── pytz >=2017.2
In this example, pytest should not be shown when passing --no-dev.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected