Skip to content

"poetry init --dependency django" does nothing #711

@nottrobin

Description

@nottrobin
  • 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).

Issue

If I do:

poetry init --dependency django

It walks me through the same guide as normal, and if when it asks if I went to define dependencies I select "no", then it doesn't add Django to pyproject.toml as a dependency, so --dependency django effectively did nothing.

It should either:

  • Edit the guide to ask if you want to specify any further dependencies, and maybe indicate that it's going to install Django anyway; or
  • Error saying "--dependency is only compatible with --no-interaction"

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions