Skip to content

Clarify whether the python version needs to be specified in [tool.poetry.dependencies] #10103

@felixgwilliams

Description

@felixgwilliams

Issue Kind

Unclear documentation

Existing Link

https://python-poetry.org/docs/pyproject/#dependencies-and-dependency-groups

Description

According to the documentation on the tool.poetry.dependencies section:

Be aware that declaring the python version for which your package is compatible is mandatory:

However, since v2, it is possible to use project.requires-python to specify the python version and poetry can accept a tool.poetry.dependencies section without a python version specified and can take the python version declaration from requires-python.

Can the documentation be updated to reflect the current behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsDocumentation issues/improvementsstatus/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