Skip to content

Make poetry init not add readme section if it doesn't detect a readme #10217

@iTrooz

Description

@iTrooz

Issue Kind

Change in current behaviour

Description

When creating a project using poetry init, poetry always generates a readme key, even if there is no readme file in the repository. That then makes poetry install fail, forcing the user to either create a readme or delete the key.

I think it would be better if poetry detected if the file existed, and only added the readme key if the README.md file actually exists

Impact

Minimal impact ?

Workarounds

removing readme key after doing poetry ini( which is what I do now)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliRelated to the command linekind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions