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

show --tree --no-dev shows the dev dependencies #3295

Closed
3 tasks done
1ace opened this issue Oct 27, 2020 · 1 comment · Fixed by #3296
Closed
3 tasks done

show --tree --no-dev shows the dev dependencies #3295

1ace opened this issue Oct 27, 2020 · 1 comment · Fixed by #3296
Labels
kind/bug Something isn't working as expected

Comments

@1ace
Copy link
Contributor

1ace commented Oct 27, 2020

  • 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 (-vvv option).
  • 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.

@1ace 1ace added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 27, 2020
@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants