Skip to content

tool.poetry section should be optional #8110

@silverwind

Description

@silverwind
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

The tool.poetry section and specifically the keys name, version, descriptions and authors of a pyproject.toml are mandatory for poetry, but they are just useless for projects that use poetry to run only command-line python tools and which do not intend to publish as a PyPi module. For comparison, for package.json the minimal format is

{
  "dependencies": {
    "module": "1.0.0"
  }
}

I would like to see poetry adapt a similar minimal syntax for the pyproject.toml:

[tool.poetry.dependencies]
python = "^3.11"
module= "1.0.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementationsstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions