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

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

Open
felixgwilliams opened this issue Jan 24, 2025 · 2 comments · May be fixed by #10104
Open

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

felixgwilliams opened this issue Jan 24, 2025 · 2 comments · May be fixed by #10104
Labels
area/docs Documentation issues/improvements status/triage This issue needs to be triaged

Comments

@felixgwilliams
Copy link

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?

@felixgwilliams felixgwilliams added area/docs Documentation issues/improvements status/triage This issue needs to be triaged labels Jan 24, 2025
@dimbleby
Copy link
Contributor

Submit a pull request!

@felixgwilliams
Copy link
Author

Submitted in #10104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Documentation issues/improvements status/triage This issue needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants